Devkit_core.WebSourceweb 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
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 ]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 ->
'rettype 'ret http_request =
([ `Form of (string * string) list | `Raw of string * string ], 'ret)
http_request_val show_result :
?verbose:bool ->
[< `Error of Curl.curlCode | `Ok of int * string ] ->
stringval simple_result :
?is_ok:(int -> bool) ->
?verbose:bool ->
[< `Error of Curl.curlCode | `Ok of int * string Ok ] ->
[> `Error of string | `Ok of string ]val http_query :
(string * string, [> `Error of string | `Ok of string ])
Http_blocking.request_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.tval http_query_lwt :
(string * string, [> `Error of string | `Ok of string ]) Http_lwt.request_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