package github-unix

  1. Overview
  2. Docs
val code_handler : expected_code:Cohttp.Code.status_code -> 'a -> 'a handler
val get : ?rate:rate -> ?fail_handlers:'a parse handler list -> ?expected_code:Cohttp.Code.status_code -> ?media_type:string -> ?headers:Cohttp.Header.t -> ?token:Token.t -> ?params:(string * string) list -> uri:Uri.t -> 'a parse -> 'a Response.t Monad.t
val get_stream : ?rate:rate -> ?fail_handlers:'a Stream.parse handler list -> ?expected_code:Cohttp.Code.status_code -> ?media_type:string -> ?headers:Cohttp.Header.t -> ?token:Token.t -> ?params:(string * string) list -> uri:Uri.t -> 'a Stream.parse -> 'a Stream.t
val post : ?rate:rate -> ?fail_handlers:'a parse handler list -> expected_code:Cohttp.Code.status_code -> ?headers:Cohttp.Header.t -> ?body:string -> ?token:Token.t -> ?params:(string * string) list -> uri:Uri.t -> 'a parse -> 'a Response.t Monad.t
val delete : ?rate:rate -> ?fail_handlers:'a parse handler list -> ?expected_code:Cohttp.Code.status_code -> ?headers:Cohttp.Header.t -> ?token:Token.t -> ?params:(string * string) list -> uri:Uri.t -> 'a parse -> 'a Response.t Monad.t
val patch : ?rate:rate -> ?fail_handlers:'a parse handler list -> expected_code:Cohttp.Code.status_code -> ?headers:Cohttp.Header.t -> ?body:string -> ?token:Token.t -> ?params:(string * string) list -> uri:Uri.t -> 'a parse -> 'a Response.t Monad.t
val put : ?rate:rate -> ?fail_handlers:'a parse handler list -> expected_code:Cohttp.Code.status_code -> ?headers:Cohttp.Header.t -> ?body:string -> ?token:Token.t -> ?params:(string * string) list -> uri:Uri.t -> 'a parse -> 'a Response.t Monad.t
val set_user_agent : string -> unit Monad.t
val set_token : Token.t -> unit Monad.t
val get_rate : ?rate:rate -> ?token:Token.t -> unit -> Github_t.rate Monad.t
val get_rate_limit : ?token:Token.t -> unit -> int Monad.t
val get_rate_remaining : ?token:Token.t -> unit -> int Monad.t
val get_rate_reset : ?token:Token.t -> unit -> float Monad.t
val string_of_message : Github_t.message -> string
OCaml

Innovation. Community. Security.