Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type t = Async.Tcp.Server.inet
module Response_body : sig ... end
type response = Response.t * Response_body.t
type request_handler =
body:[ `read ] Body.t ->
Async.Socket.Address.Inet.t ->
Request.t ->
response Async.Deferred.t
val create :
on_handler_error:
(Async.Socket.Address.Inet.t -> Server_connection.error_handler) ->
Async.Tcp.Where_to_listen.inet ->
request_handler ->
t Async.Deferred.t
val respond_string :
?headers:Headers.t ->
?status:Status.t ->
string ->
response Async.Deferred.t
val respond_with_redirect :
?headers:Headers.t ->
Uri.t ->
response Async.Deferred.t
val respond_with_pipe :
?headers:Headers.t ->
?status:Status.t ->
string Async.Pipe.Reader.t ->
response Async.Deferred.t
val respond_with_file :
?headers:Headers.t ->
?status:Status.t ->
string ->
response Async.Deferred.t