package github-hooks

  1. Overview
  2. Docs

Module type Github_hooks.SERVERSource

include Cohttp_lwt.S.Server
Sourcemodule IO : sig ... end
Sourcetype body = Cohttp_lwt__.Body.t
Sourcetype conn = IO.conn * Cohttp.Connection.t
Sourcetype response = Http.Response.t * Cohttp_lwt__.Body.t
Sourcetype response_action = [
  1. | `Expert of Http.Response.t * (IO.ic -> IO.oc -> unit IO.t)
  2. | `Response of response
]
Sourcetype t
Sourceval make_response_action : ?conn_closed:(conn -> unit) -> callback:(conn -> Http.Request.t -> body -> response_action IO.t) -> unit -> t
Sourceval make_expert : ?conn_closed:(conn -> unit) -> callback: (conn -> Http.Request.t -> body -> (Http.Response.t * (IO.ic -> IO.oc -> unit IO.t)) IO.t) -> unit -> t
Sourceval make : ?conn_closed:(conn -> unit) -> callback:(conn -> Http.Request.t -> body -> response IO.t) -> unit -> t
Sourceval respond : ?headers:Http.Header.t -> status:Http.Status.t -> body:body -> unit -> response IO.t
Sourceval respond_string : ?headers:Http.Header.t -> status:Http.Status.t -> body:string -> unit -> response IO.t
Sourceval callback : t -> IO.conn -> IO.ic -> IO.oc -> unit IO.t
Sourceval resolve_local_file : docroot:string -> uri:Uri.t -> string
  • deprecated Please use Cohttp.Path.resolve_local_file.
Sourceval respond_error : ?headers:Http.Header.t -> ?status:Http.Status.t -> body:string -> unit -> (Http.Response.t * body) IO.t
Sourceval respond_redirect : ?headers:Http.Header.t -> uri:Uri.t -> unit -> (Http.Response.t * body) IO.t
Sourceval respond_need_auth : ?headers:Http.Header.t -> auth:Cohttp.Auth.challenge -> unit -> (Http.Response.t * body) IO.t
Sourceval respond_not_found : ?uri:Uri.t -> unit -> (Http.Response.t * body) IO.t
Sourcetype tcp_config = private [>
  1. | `Port of int
]
Sourcetype mode = private [>
  1. | `TCP of tcp_config
  2. | `TLS of server_tls_config
]
Sourceval create : mode -> t -> unit Lwt.t
OCaml

Innovation. Community. Security.