package vif
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A simple web framework for OCaml 5
Install
dune-project
Dependency
Authors
Maintainers
Sources
vif-0.0.1.beta4.tbz
sha256=0327abf4e7434e5de402661cc8c29c0539501269401670fed773b0dfc14e26aa
sha512=1ff5dddecf25b41986ea629bda336a990800db8410498682bf96af2b1afab74ae57172ee8d41087f131c9ceeb3255c96351668664e36c6815a249157afd05a5d
doc/vif.core/Vif_core/Response/index.html
Module Vif_core.ResponseSource
Source
type ('p, 'q, 'a) t = | Add_header : string * string -> ('p, 'p, unit) t| Add_unless_exists : string * string -> ('p, 'p, bool) t| Set_header : string * string -> ('p, 'p, unit) t| Rem_header : string -> ('p, 'p, unit) 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
Source
val redirect_to :
?with_get:??? ->
?status:??? ->
('a, 'b, 'c) Vif_core__.Vif_request.t ->
(Tyre.evaluable, 'd, (filled, sent, unit) t) Vif_core__.Vif_uri.t ->
'dSource
val with_source :
?compression:??? ->
('a, 'b, 'c) Vif_core__.Vif_request.t ->
string Flux.source ->
(empty, filled, unit) tSource
val with_stream :
?compression:??? ->
('a, 'b, 'c) Vif_core__.Vif_request.t ->
string Flux.stream ->
(empty, filled, unit) tSource
val with_tyxml :
?compression:??? ->
('a, 'b, 'c) Vif_core__.Vif_request.t ->
Tyxml.Html.doc ->
(empty, filled, unit) tSource
val update_metrics :
Vif_core__.Vif_metrics.t ->
[> `Accepted
| `Bad_gateway
| `Bad_request
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Moved_permanently
| `Multiple_choices
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
unitSource
val respond_string :
Vif_core__.Vif_server.t ->
?headers:??? ->
H2.Status.t ->
'a Vif_core__.Vif_request0.t ->
string ->
unit sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>