Hcs.Server.H2_handler

hcs · API reference

module C = Http2.Server_connection
val max_concurrent_streams : int
val make_request : C.reqd -> body_reader:body_reader -> request
val to_response : Response.t -> C.response
val max_body_int : int64 option -> int
val error_response : exn -> C.response
val handle : 
  sw:'a ->
  clock:[> float Eio.Time.clock_ty ] Eio.Time.clock ->
  timeouts:timeouts ->
  max_header_size:int ->
  handler:(request -> Response.t) ->
  ?max_body_size:int64 ->
  ?body_buffer_limit:int ->
  initial_data:string ->
  [> Eio.Flow.two_way_ty ] Eio.Flow.sink ->
  unit
val handle_direct : 
  sw:'a ->
  clock:[> float Eio.Time.clock_ty ] Eio.Time.clock ->
  timeouts:timeouts ->
  max_header_size:int ->
  handler:(request -> Response.t) ->
  ?max_body_size:int64 ->
  ?body_buffer_limit:int ->
  [> Eio.Flow.two_way_ty ] Eio.Flow.sink ->
  unit