package paf
HTTP/AF and MirageOS
Install
Dune Dependency
Authors
Maintainers
Sources
paf-0.8.0.tbz
sha256=d2ad3b819a735320e85a50389bf3fe1064afbd528067b470564a4ece2ab31b63
sha512=e6bf4640a1411ab15fcec1fda9c494bfa895bd1d5c2f40542a9680252dd2cabf2f3da7f17849489e5ddfef2c003b35a9945a2f8aae432d3d1608745f02767612
doc/paf.mirage/Paf_mirage/index.html
Module Paf_mirage
Source
Source
module Make
(Stack : Tcpip.Tcp.S) :
S with type stack = Stack.t and type ipaddr = Stack.ipaddr
Client implementation.
The client implementation of Paf_mirage
does not strictly need a functor. Indeed, the client was made in the sense of mimic
. The user should provide a Mimic.ctx
which generate a paf_transmission
. By this way, the run
function is able to introspect the used protocol (regardless its implementation) and do the ALPN challenge with the server.
Source
val run :
ctx:Mimic.ctx ->
(Ipaddr.t * int) option Alpn.client_handler ->
[ `V1 of H1.Request.t | `V2 of H2.Request.t ] ->
(Alpn.alpn_response, [> Mimic.error ]) result Lwt.t
run ~ctx handler req
sends an HTTP request (H2 or HTTP/1.1) to a peer which can be reached via the given Mimic's ctx
. If the connection is recognized as a tls_protocol
, we proceed an ALPN challenge between what the user chosen and what the peer can handle. Otherwise, we send a simple HTTP/1.1 request or a h2c
request.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page