package devkit
Development kit - general purpose library
Install
Dune Dependency
Authors
Maintainers
Sources
devkit-1.20210120.tbz
md5=47338eaae436aba40abd4d194ee40054
sha256=499b050b73643f6ad7349a41485539d4166d149a07fba59cb6841f508c0297f8
sha512=6a5bf77061d390ddb331ed3d5891a5c56502be91f0eff6846202f658ebfa97ef57695d7a192cbdad4c7b8835f5665df3ea4375daf46930334ebbd9a07f00feca
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
type ('body, 'ret) http_request_ =
?ua:string ->
?timeout:int ->
?verbose:bool ->
?setup:(Curl.t -> unit) ->
?timer:Action.timer ->
?max_size:int ->
?http_1_0:bool ->
?headers:string list ->
?body:'body ->
http_action ->
string ->
'ret
Source
type 'ret http_request =
([ `Form of (string * string) list | `Raw of string * string ], 'ret)
http_request_
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_query :
(string * string, [> `Error of string | `Ok of string ])
Http_blocking.request_
Source
val http_submit :
?ua:string ->
?timeout:int ->
?verbose:bool ->
?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 ] Http_blocking.IO.t
Source
val http_query_lwt :
(string * string, [> `Error of string | `Ok of string ]) Http_lwt.request_
Source
val http_submit_lwt :
?ua:string ->
?timeout:int ->
?verbose:bool ->
?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 ] Http_lwt.IO.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>