Class: PHPRPC::CGIServer
- Inherits:
-
BaseServer
- Object
- BaseServer
- PHPRPC::CGIServer
- Defined in:
- lib/phprpc/cgi_server.rb
Instance Attribute Summary
Attributes inherited from BaseServer
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
#start ⇒ Object
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 |