class type['a]
http_service =object
..end
method name : string
The name of the type of the service provider
method def_term : 'a
The definition term
method print : Stdlib.Format.formatter -> unit
Outputs the definition term to a formatter
method process_header : extended_environment -> http_service_reaction
First stage of HTTP processing: This method is called when the HTTP header has been received. This method must return quickly without blocking the thread how to go on. For example, this could look as follows:
`Static
, `File
, or, if computed, using `Reject_body
.process_header
call is simply the result of the
process_header
call of the other service provider.`File
. Otherwise, return `Accept_body
to continue with the
second stage. Note that even if no body is expected to arrive, one must
go through the second stage, and drop any unexpected body.The argument of this function is the Netcgi environment. The header is complete, including the request method. One cannot access the input and output channels at this stage of processing.