Module type H2_mirage.Server

type flow
val create_connection_handler : ?⁠config:H2.Config.t -> request_handler:H2.Server_connection.request_handler -> error_handler:H2.Server_connection.error_handler -> flow -> unit Lwt.t
val create_h2c_connection_handler : ?⁠config:H2.Config.t -> http_request:Httpaf.Request.t -> ?⁠request_body:Bigstringaf.t H2.IOVec.t list -> request_handler:H2.Server_connection.request_handler -> error_handler:H2.Server_connection.error_handler -> flow -> (unit, string) Stdlib.result Lwt.t