package dream-httpaf
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Internal: shared http/af stack for Dream (server) and Hyper (client)
Install
dune-project
Dependency
Authors
Maintainers
Sources
dream-1.0.0-alpha6.tar.gz
sha256=8d3b6344c0e175aca628b3d5bb8ee58265e8c1074fc2d40d63f136fef83daf90
doc/dream-httpaf.dream-httpaf_/Dream_httpaf_/Server_connection/index.html
Module Dream_httpaf_.Server_connectionSource
Source
type error_code = | No_error| Error of {request : Request.t option;mutable response_state : Response_state.t;
}
Source
type t = {reader : Reader.request;writer : Writer.t;response_body_buffer : Bigstringaf.t;request_handler : request_handler;error_handler : error_handler;request_queue : Reqd.t Queue.t;mutable error_code : error_code;
}Source
val default_error_handler :
?request:'a ->
[< `Bad_gateway
| `Bad_request
| `Conflict
| `Enhance_your_calm
| `Exn of exn
| `Expectation_failed
| `Forbidden
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Network_authentication_required
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Service_unavailable
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long ] ->
(Headers.t -> Body.Writer.t) ->
unitSource
val _next_read_operation :
t ->
[> `Close | `Error of Reader.request_error | `Read | `Start | `Yield ]Source
val _final_read_operation_for :
t ->
Reqd.t ->
[> `Close | `Error of Reader.request_error | `Read | `Start | `Yield ]Source
val _next_write_operation :
t ->
[> `Close of int | `Write of Faraday.bigstring Faraday.iovec list | `Yield ]Source
val _final_write_operation_for :
t ->
Reqd.t ->
[> `Close of int | `Write of Faraday.bigstring Faraday.iovec list | `Yield ]Source
val next_write_operation :
t ->
[> `Close of int | `Write of Faraday.bigstring Faraday.iovec list | `Yield ] sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>