Module Vif_core.ResponseSource
Sourcetype ('p, 'q, 'a) t = | Add_unless_exists : string * string -> ('p, 'p, bool) t| Return : 'a -> ('p, 'p, 'a) t| Bind : ('p, 'q, 'a) t * ('a -> ('q, 'r, 'b) t) -> ('p, 'r, 'b) t| Source : string Flux.source -> (empty, filled, unit) t| Stream : string Flux.stream -> (empty, filled, unit) t| String : string -> (empty, filled, unit) t| Websocket : (empty, sent, unit) t| Respond : [ Vif_core__.Vif_status.standard | `Code of int ] -> (filled,
sent,
unit)
t
Sourceval bind : ('a, 'b, 'c) t -> ('c -> ('b, 'd, 'e) t) -> ('a, 'd, 'e) t Sourceval respond :
[ Vif_core__.Vif_status.standard | `Code of int ] ->
(filled, sent, unit) t Sourceval return : 'a -> ('b, 'b, 'a) t Sourceval add : field:string -> string -> ('a, 'a, unit) t Sourceval add_unless_exists : field:string -> string -> ('a, 'a, bool) t Sourceval set : field:string -> string -> ('a, 'a, unit) t Sourceval rem : field:string -> ('a, 'a, unit) t Sourceval (let*) : ('a, 'b, 'c) t -> ('c -> ('b, 'd, 'e) t) -> ('a, 'd, 'e) t Sourceval can_compress : string -> ('a, 'b, 'c) Vif_core__.Vif_request.t -> bool Sourceval compression :
[> `DEFLATE | `Gzip ] ->
('a, 'b, 'c) Vif_core__.Vif_request.t ->
('d, 'd, bool) t Sourceval with_source :
?compression:[> `DEFLATE | `Gzip ] ->
('a, 'b, 'c) Vif_core__.Vif_request.t ->
string Flux.source ->
(empty, filled, unit) t Sourceval with_stream :
?compression:[> `DEFLATE | `Gzip ] ->
('a, 'b, 'c) Vif_core__.Vif_request.t ->
string Flux.stream ->
(empty, filled, unit) t Sourceval connection_close :
('a, 'b, 'c) Vif_core__.Vif_request.t ->
('d, 'd, bool) t Sourceval content_length : int -> ('a, 'a, bool) t Sourceval with_string :
?compression:[> `DEFLATE | `Gzip ] ->
('a, 'b, 'c) Vif_core__.Vif_request.t ->
string ->
(empty, filled, unit) t Sourceval with_text :
?utf_8:bool ->
?compression:[> `DEFLATE | `Gzip ] ->
('a, 'b, 'c) Vif_core__.Vif_request.t ->
string ->
(empty, filled, unit) t Sourceval response :
?headers:(H2.Headers.name * H2.Headers.value) list ->
H2.Status.t ->
'a Vif_core__.Vif_request0.t ->
(string, unit) Flux.sink Sourceval upgrade :
?headers:(H1.Headers.name * H1.Headers.value) list ->
'a Vif_core__.Vif_request0.t ->
unit Sourceval get_nonce : 'a Vif_core__.Vif_request0.t -> string option Sourceval run :
'a 'p 'q. now:(unit -> int32) ->
'socket Vif_core__.Vif_request0.t ->
'p state ->
('p, 'q, 'a) t ->
'q state * 'a