Class type Http_types.connection


class type connection = object .. end
an HTTP connection from a client to a server

method getRequest : request option
Returns next request object, may block if client hasn't submitted any request yet, may be None if client request was ill-formed
method respond_with : response -> unit
respond to client sending it a response
method close : unit
close connection to client. Warning: this object can't be used any longer after this method has been called