class FCGI::FastCGISocket
Public Class Methods
Public Instance Methods
Source
# File lib/fcgi.rb, line 196 def read_record header = @socket.read(Record::HEADER_LENGTH) or return nil return nil unless header.size == Record::HEADER_LENGTH _, type, reqid, clen, padlen, _ = *Record.parse_header(header) Record.class_for(type).parse(reqid, read_record_body(clen, padlen)) end
Source
# File lib/fcgi.rb, line 213 def send_record(rec) @socket.write rec.serialize @socket.flush end