package devkit
Development kit - general purpose library
Install
Dune Dependency
Authors
Maintainers
Sources
1.2.tar.gz
sha256=28f4c68127579b86c5f50e01e444e8c51f0543bc5472c2dcac28993bc88aa756
md5=0317493fa5cc1054a882ceca59ce5992
doc/devkit.core/Devkit_core/Web/index.html
Module Devkit_core.Web
Source
web utilities
percent-encode (convert space into %20)
percent-encode, but convert space into plus, not %20
percent-decode (leave plus as is)
percent-decode and convert plus into space
Minimum strictness, Neturl will fail on malformed parameters in url
Source
type http_action_old = [
| `GET
| `POST_FORM of (string * string) list
| `POST of string * string
| `PUT of string * string
| `DELETE
| `CUSTOM of string * string * string
]
Source
val show_result :
?verbose:bool ->
[< `Error of Curl.curlCode | `Ok of int * string ] ->
string
Source
val simple_result :
?is_ok:(int -> bool) ->
?verbose:bool ->
[< `Error of Curl.curlCode | `Ok of int * string Ok ] ->
[> `Error of string | `Ok of string ]
Source
val http_gets :
?setup:(CurlCache.t -> unit) ->
?max_size:int ->
?check:(CurlCache.t -> bool) ->
?result:(CurlCache.t -> Curl.curlCode -> unit Http_blocking.IO.t) ->
string ->
[ `Error of Curl.curlCode | `Ok of int * string ] Http_blocking.IO.t
Source
val http_request' :
[> `Error of Curl.curlCode | `Ok of int * string ] Http_blocking.http_request
Source
val http_query :
(string * string, [> `Error of string | `Ok of string ])
Http_blocking.http_request_
Source
val http_submit :
?ua:string ->
?timeout:int ->
?verbose:bool ->
?setup:(CurlCache.t -> unit) ->
?http_1_0:bool ->
?headers:string list ->
?action:http_action ->
string ->
(string * string) list ->
[> `Error of string | `Ok of string ] Http_blocking.IO.t
Source
val http_request_lwt' :
[> `Error of Curl.curlCode | `Ok of int * string ] Http_lwt.http_request
Source
val http_query_lwt :
(string * string, [> `Error of string | `Ok of string ])
Http_lwt.http_request_
Source
val http_submit_lwt :
?ua:string ->
?timeout:int ->
?verbose:bool ->
?setup:(CurlCache.t -> unit) ->
?http_1_0:bool ->
?headers:string list ->
?action:http_action ->
string ->
(string * string) list ->
[> `Error of string | `Ok of string ] Http_lwt.IO.t
Source
val http_get_io_exn :
?setup:(Curl.t -> unit) ->
?max_size:int ->
?check:(Curl.t -> bool) ->
string ->
'a IO.output ->
unit Http_blocking.IO.t
Source
val http_get_io :
string ->
?verbose:bool ->
?setup:(Curl.t -> unit) ->
?max_size:int ->
'a IO.output ->
unit Http_blocking.IO.t
Source
val http_do :
?ua:string ->
?timeout:int ->
?verbose:bool ->
?setup:(CurlCache.t -> unit) ->
?http_1_0:bool ->
http_action_old ->
string ->
[> `Error of string | `Ok of string ]
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>