Up – octez-libs » Cohttp_lwt_unix » ResponseModule Cohttp_lwt_unix.Response
include module type of struct include Cohttp .Response end
type t = Cohttp__Response .t = {
encoding : Cohttp__ .Transfer.encoding;
version : Cohttp__ .Code.version;
status : Cohttp__ .Code.status_code;
flush : bool;
}
val t_of_sexp : Sexplib0__ .Sexp.t -> t
val sexp_of_t : t -> Sexplib0__ .Sexp.t
val encoding : t -> Cohttp__ .Transfer.encoding
val version : t -> Cohttp__ .Code.version
val status : t -> Cohttp__ .Code.status_code
val compare : t -> t -> int
val make :
?version :Cohttp__ .Code.version ->
?status :Cohttp__ .Code.status_code ->
?flush :bool ->
?encoding :Cohttp__ .Transfer.encoding ->
?headers :Cohttp__ .Header.t ->
unit ->
t
val pp_hum : Stdlib .Format.formatter -> t -> unit
module Make : sig ... end
include sig ... end
type reader = Cohttp__Response .Make(Cohttp_lwt_unix__ .Io).reader
type writer = Cohttp__Response .Make(Cohttp_lwt_unix__ .Io).writer
val read : IO.ic -> [ `Eof | `Invalid of string | `Ok of t ] IO.t
val has_body : t -> [ `No | `Unknown | `Yes ]
val read_body_chunk : reader -> Cohttp__ .Transfer.chunk IO.t