Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Http_async.ServiceSourceService is the core abstraction that represents an HTTP server within http_async.
t is a function that takes a HTTP request and returns a deferred HTTP response.
body returns the HTTP request body for a given request.
header request key returns the last header value associates with key if one exists.
header_multi request key returns a list of all header values associated with key.
val respond_string :
?headers:(string * string) list ->
?status:Status.t ->
string ->
response Async.Deferred.trespond_string creates a new fixed length encoded response from the user provided string. If the user provided headers don't contain a Content-Length header, one is added with the value set to the string's length.
val respond_bigstring :
?headers:(string * string) list ->
?status:Status.t ->
Core.Bigstring.t ->
response Async.Deferred.trespond_bigstring creates a new fixed length encoded response from the user provided Bigstring.t. If the user provided headers don't contain a Content-Length header, one is added with the value set to the bigstring's length.