sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Web.HttpSourceval http_request_k :
result:((Curl.t * (int * string, Curl.curlCode) result) -> 'r) ->
'r requestthis is the most general form, pass result callback to massage the result before returning from the function e.g. if you need the redirect url in case of 3xx, do http_request_k ~result:http_result
this is the most straightforward result of http status code and content or error code
even easier - content on HTTP 2xx or error message
same as http_request but raise exception on non-2xx
send GET with a given content-type and body
val http_submit :
?verbose:bool ->
?ua:string ->
?timeout:int ->
?setup:(Curl.t -> unit) ->
?timer:Action.timer ->
?http_1_0:bool ->
?headers:string list ->
?action:http_action ->
string ->
(string * string) list ->
[> `Error of string | `Ok of string ] IO.tsend POST with key-value form parameters