package graphql-cohttp

  1. Overview
  2. Docs

Parameters

module IO : Cohttp.S.IO with type 'a t = 'a Schema.Io.t
module Body : HttpBody with type +'a io := 'a Schema.Io.t

Signature

type response_action = [
  1. | `Expert of Cohttp.Response.t * (IO.ic -> IO.oc -> unit IO.t)
  2. | `Response of Cohttp.Response.t * Body.t
]
type 'conn callback = 'conn -> Cohttp.Request.t -> Body.t -> response_action IO.t
val execute_request : 'ctx Schema.schema -> 'ctx -> Cohttp.Request.t -> Body.t -> response_action IO.t
val make_callback : (Cohttp.Request.t -> 'ctx) -> 'ctx Schema.schema -> 'conn callback
OCaml

Innovation. Community. Security.