package curly

All checked builds pass
  1. Overview
  2. Docs
Curly is a brain dead wrapper around the curl command line utility

Install

dune-project
 Dependency

Authors

Maintainers

Sources

curly-0.3.0.tbz
sha256=427fcf28134e70cb77764d9feee243f31d32a38447a1b5d28d341c93b7dc5d3c
sha512=a8313c902f96a352fb5f592b0b4d2dbd72efcd92a688c812350be5561442d418b64ab0325e2ffe181385268224dc51a66107451a11b59e45a50e38827b9a9912

Description

Added to opam-repository:

README

Curly - The Dumbest Http Client

Curly is a brain dead wrapper around the curl command line utility designed to provide a 0 dependency solution for applications that want to create some very simple HTTP requests. It is not blazing fast, or async, but at least it involves no C bindings, it's trivial to vendor, and the API can be learned in 5 minutes.

Here's a simple example:

match Curly.(run (Request.make ~url:"https://opam.ocaml.org" ~meth:`GET ())) with
| Ok x ->
  Format.printf "status: %d\n" x.Curly.Response.code;
  Format.printf "headers: %a\n" Curly.Header.pp x.Curly.Response.headers;
  Format.printf "body: %s\n" x.Curly.Response.body
| Error e ->
  Format.printf "Failed: %a" Curly.Error.pp e

There's not much more to it than this. Consult curly.mli to see how to construct various requests and read responses, or read the online documentation.

Dependencies (4)

  1. result
  2. base-unix
  3. ocaml >= "4.03.0"
  4. dune >= "2.7"

Dev Dependencies (3)

  1. odoc with-doc
  2. cohttp-lwt-unix with-test
  3. alcotest with-test

Optional Dependencies

None

Used by (3)

  1. calculon-web
  2. dune-release >= "1.4.0"
  3. opam-compiler >= "0.2.0"

Conflicts

None

Build status

Results of building curly with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.3.0 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure