curly

Curly is a brain dead wrapper around the curl command line utility
IN THIS PACKAGE
Module Curly
module Meth : sig ... end
module Header : sig ... end
module Response : sig ... end
module Request : sig ... end
module Process_result : sig ... end
module Error : sig ... end
val run : ?exe:string -> ?args:string list -> Request.t -> ( Response.t, Error.t ) Result.result
val get : ?exe:string -> ?args:string list -> ?headers:Header.t -> string -> ( Response.t, Error.t ) Result.result

Specialized version of run for method `GET

  • since 0.2.0
val head : ?exe:string -> ?args:string list -> ?headers:Header.t -> string -> ( Response.t, Error.t ) Result.result

Specialized version of run for method `HEAD

  • since 0.2.0
val delete : ?exe:string -> ?args:string list -> ?headers:Header.t -> string -> ( Response.t, Error.t ) Result.result

Specialized version of run for method `DELETE

  • since 0.2.0
val post : ?exe:string -> ?args:string list -> ?headers:Header.t -> ?body:string -> string -> ( Response.t, Error.t ) Result.result

Specialized version of run for method `POST

  • since 0.2.0
val put : ?exe:string -> ?args:string list -> ?headers:Header.t -> ?body:string -> string -> ( Response.t, Error.t ) Result.result

Specialized version of run for method `PUT

  • since 0.2.0