Class: PHPRPC::CGIServer

Inherits:
BaseServer show all
Defined in:
lib/phprpc/cgi_server.rb

Instance Attribute Summary

Attributes inherited from BaseServer

#charset, #debug

Instance Method Summary collapse

Methods inherited from BaseServer

#add, #call, #call!, #initialize

Constructor Details

This class inherits a constructor from PHPRPC::BaseServer

Instance Method Details

#startObject



37
38
39
40
41
42
# File 'lib/phprpc/cgi_server.rb', line 37

def start()
  cgi = CGI::new
  header, body = call!(ENV, cgi)
  header['type'] = header['Content-Type']
  cgi.out(header) { body }
end