package graphql-cohttp

  1. Overview
  2. Docs
module IO : Cohttp.S.IO with type 'a t = 'a IO.t
type t
val create : ?read_buf:Buffer.t -> ?write_buf:Buffer.t -> mode:Graphql_websocket.Connection.mode -> Cohttp.Request.t -> IO.ic -> IO.oc -> t
val send : t -> Graphql_websocket.Frame.t -> unit IO.t
val send_multiple : t -> Graphql_websocket.Frame.t list -> unit IO.t
val req : t -> Cohttp.Request.t
val upgrade_connection : ?read_buf:Buffer.t -> ?write_buf:Buffer.t -> Cohttp.Request.t -> (t -> unit IO.t) -> [> `Expert of Cohttp.Response.t * (IO.ic -> IO.oc -> unit IO.t) ]
OCaml

Innovation. Community. Security.