package devkit

  1. Overview
  2. Docs
val return : ?status:reply_status -> ?extra:(string * string) list -> typ:string -> string -> [> `Body of reply_status reply' ] Lwt.t
val text : ?status:reply_status -> ?extra:(string * string) list -> string -> [> `Body of reply_status reply' ] Lwt.t
val binary : ?status:reply_status -> ?extra:(string * string) list -> string -> [> `Body of reply_status reply' ] Lwt.t
val printf : ?status:reply_status -> ?extra:(string * string) list -> ('a, unit, string, [> `Body of reply_status reply' ] Lwt.t) format4 -> 'b
val json : ?status:reply_status -> ?extra:(string * string) list -> string -> [> `Body of reply_status reply' ] Lwt.t
val yojson : ?status:reply_status -> ?extra:(string * string) list -> Yojson.Safe.t -> [> `Body of reply_status reply' ] Lwt.t
val error : reply_status -> string -> [> `Body of reply_status reply' ] Lwt.t
val not_found : string -> [> `Body of reply_status reply' ] Lwt.t
val bad_request : string -> [> `Body of reply_status reply' ] Lwt.t
val internal_error : string -> [> `Body of reply_status reply' ] Lwt.t
exception No_path
val random_ref : unit -> Int64.t
val rest : show_exn:bool -> request -> ((module Args) -> (meth * string) -> [> `Body of reply_status reply' ] as 'a Lwt.t) -> 'a Lwt.t