package shuttle_http
Async library for HTTP/1.1 servers and clients
Install
Dune Dependency
Authors
Maintainers
Sources
shuttle-0.9.2.tbz
sha256=69bf4d3ec9262dc981db5b6073c1d9e581c24fa1f1a49d20798eb3ae953ecdc3
sha512=36e95dcfce349f1acc586afa30c6b74d8212b9a8c0e32a2abcdbe09a87208b9ed2dc2c27aed3d65f4e9031260a3c54af7d0e9ebd7ba3d0b80182f17773dae24f
doc/shuttle_http/Shuttle_http/Server/index.html
Module Shuttle_http.Server
Source
Source
type error_handler =
?exn:exn ->
?request:Request.t ->
Status.t ->
Response.t Async.Deferred.t
error_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.inet
run_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.t
run ?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)"
>