package shuttle_http
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Async library for HTTP/1.1 servers and clients
Install
dune-project
Dependency
Authors
Maintainers
Sources
shuttle-0.9.4.tbz
sha256=d868723ab7d9b9c7239c30ce0692bc02c8f6ac3f3ff62ef31a0b8a014de45995
sha512=f831285927eae3da9bb6e233e296e0d9193a940faf81850a279d50a1639ad806717054f973e60436d9afa503ae5a800ddd6a5c4b3eaca8457b20ac5d810534f3
doc/shuttle_http/Shuttle_http/Server/index.html
Module Shuttle_http.ServerSource
Source
type error_handler =
?exn:exn ->
?request:Request.t ->
Status.t ->
Response.t Async.Deferred.terror_handler can be used to customize how the server deals with any unhandled exceptions. A default implementation is provided that will respond with a status code and an empty response body.
A user provided service that is invoked for every request/response cycle for a HTTP connection.
Source
val run_inet :
?config:Config.t ->
Async.Tcp.Where_to_listen.inet ->
(Async.Socket.Address.Inet.t -> service) ->
Async.Tcp.Server.inetrun_inet ?config addr service runs a http server where each request will be forwarded to the user provided service.
Source
val run :
?config:Config.t ->
('address, 'listening_on) Async.Tcp.Where_to_listen.t ->
('address -> service) ->
('address, 'listening_on) Async.Tcp.Server.t Async.Deferred.trun ?config addr service runs a http server where each request will be forwarded to the user provided service.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>