package devkit

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Httpev.AnswerSource

Sourceval return : ?status:??? -> ?extra:??? -> typ:string -> string -> [> `Body of reply_status reply' ] Lwt.t
Sourceval text : ?status:??? -> ?extra:??? -> string -> [> `Body of reply_status reply' ] Lwt.t
Sourceval binary : ?status:??? -> ?extra:??? -> string -> [> `Body of reply_status reply' ] Lwt.t
Sourceval printf : ?status:??? -> ?extra:??? -> ('a, unit, string, [> `Body of reply_status reply' ] Lwt.t) format4 -> 'a
Sourceval json : ?status:??? -> ?extra:??? -> string -> [> `Body of reply_status reply' ] Lwt.t
Sourceval yojson : ?status:??? -> ?extra:??? -> Yojson.Safe.t -> [> `Body of reply_status reply' ] Lwt.t
Sourceval encoded_gzip : request -> ?status:??? -> ?extra:??? -> typ:string -> string -> [> `Body of reply_status reply' ] Lwt.t

Return a body that's already gzip-encoded, add corresponding content-encoding

Sourceval error : reply_status -> string -> [> `Body of reply_status reply' ] Lwt.t
Sourceval not_found : string -> [> `Body of reply_status reply' ] Lwt.t
Sourceval bad_request : string -> [> `Body of reply_status reply' ] Lwt.t
Sourceval internal_error : string -> [> `Body of reply_status reply' ] Lwt.t
Sourceexception No_path
Sourceval random_ref : unit -> Int64.t
Sourceval rest : show_exn:bool -> request -> ((module Args) -> (meth * string) -> ([> `Body of reply_status reply' ] as 'a) Lwt.t) -> 'a Lwt.t