package quickterface
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Quick-to-program app interfaces in OCaml for terminal and web
Install
dune-project
Dependency
Authors
Maintainers
Sources
quickterface-0.1.0.tbz
sha256=8261e3819564fb5d05f1f313e62b73382152591d7a4349ae5b1b08a4fc2469f3
sha512=e739a971bb0e696ab716c168419c59a3d195922d2d1e4963106a845e3442ffa085b05106f36cceeec9b806bf7d6ef2c31e98db04911fbf73c5ac0ce626449d0f
doc/quickterface.terminal_app/Quickterface_terminal_app/Minimal_terminal_io/Http_client/index.html
Module Minimal_terminal_io.Http_clientSource
In most cases you should use the more specific helper calls in the interface rather than invoke this function directly. See head, get and post for some examples.
include Cohttp.Generic.Client.S
with type 'a io = 'a Lwt.t
and type body = Cohttp_lwt__.Body.t
and type 'a with_context = ?ctx:ctx -> 'a
type 'a io = 'a Lwt.ttype 'a with_context = ?ctx:ctx -> 'atype body = Cohttp_lwt.Body.tval map_context : 'a with_context -> ('a -> 'b) -> 'b with_contextval call :
(?headers:Http.Header.t ->
?body:body ->
?chunked:bool ->
Http.Method.t ->
Uri.t ->
(Http.Response.t * body) io)
with_contextcall ?headers ?body ?chunked meth uri
val head : (?headers:Http.Header.t -> Uri.t -> Http.Response.t io) with_contextval get :
(?headers:Http.Header.t -> Uri.t -> (Http.Response.t * body) io) with_contextval delete :
(?body:body ->
?chunked:bool ->
?headers:Http.Header.t ->
Uri.t ->
(Http.Response.t * body) io)
with_contextval post :
(?body:body ->
?chunked:bool ->
?headers:Http.Header.t ->
Uri.t ->
(Http.Response.t * body) io)
with_contextval put :
(?body:body ->
?chunked:bool ->
?headers:Http.Header.t ->
Uri.t ->
(Http.Response.t * body) io)
with_contextval patch :
(?body:body ->
?chunked:bool ->
?headers:Http.Header.t ->
Uri.t ->
(Http.Response.t * body) io)
with_contextProvide a function used to process requests. Please see call. The provided function is only used when no ctx argument is passed to the convenience functions below.
Source
val post_form :
?ctx:ctx ->
?headers:Http.Header.t ->
params:(string * string list) list ->
Uri.t ->
(Http.Response.t * Cohttp_lwt.Body.t) Lwt.tSource
val callv :
?ctx:ctx ->
Uri.t ->
(Http.Request.t * Cohttp_lwt.Body.t) Lwt_stream.t ->
(Http.Response.t * Cohttp_lwt.Body.t) Lwt_stream.t Lwt.t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>