package httpaf_caged
Module Httpaf_caged.Server
module Response_body : sig ... endtype response = Response.t * Response_body.ttype request_handler =
body:[ `read ] Body.t ->
Async.Socket.Address.Inet.t ->
Request.t ->
response Async.Deferred.tval create :
on_handler_error:
(Async.Socket.Address.Inet.t -> Server_connection.error_handler) ->
Async.Tcp.Where_to_listen.inet ->
request_handler ->
t Async.Deferred.tval respond_string :
?headers:Headers.t ->
?status:Status.t ->
string ->
response Async.Deferred.tval respond_with_redirect :
?headers:Headers.t ->
Uri.t ->
response Async.Deferred.tval respond_with_pipe :
?headers:Headers.t ->
?status:Status.t ->
string Async.Pipe.Reader.t ->
response Async.Deferred.tval respond_with_file :
?headers:Headers.t ->
?status:Status.t ->
string ->
response Async.Deferred.t