package ezcurl
-
ezcurl
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Core signatures and implementation
module Config : sig ... end
Configuration for the client.
type t = Curl.t
A client, i.e. a cURL instance.
val delete : t -> unit
Delete the client. It cannot be used anymore.
Make a temporary client, call the function with it, then cleanup.
val pp_response_info : Stdlib.Format.formatter -> response_info -> unit
val string_of_response_info : response_info -> string
type response = {
code : int;
Response code. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
*)headers : (string * string) list;
Response headers
*)body : string;
Response body, or ""
info : response_info;
Information about the response
*)}
Response for a given request.
val pp_response : Stdlib.Format.formatter -> response -> unit
val string_of_response : response -> string
type meth =
| GET
| POST of Curl.curlHTTPPost list
| PUT
| DELETE
| HEAD
| CONNECT
| OPTIONS
| TRACE
| PATCH
The HTTP method to use
val pp_meth : Stdlib.Format.formatter -> meth -> unit
val string_of_meth : meth -> string
module type IO = sig ... end
module type S = sig ... end