this repo has no description
1opam-version: "2.0"
2maintainer: "rudi.grinberg@gmail.com"
3authors: ["Rudi Grinberg"]
4license: "ISC"
5
6homepage: "https://github.com/rgrinberg/curly"
7dev-repo: "git+https://github.com/rgrinberg/curly.git"
8bug-reports: "https://github.com/rgrinberg/curly/issues"
9
10build: [
11 ["jbuilder" "subst" "-p" name "--name" name] {dev}
12 ["jbuilder" "build" "-p" name "-j" jobs]
13]
14run-test: [
15 ["jbuilder" "runtest" "-p" name "-j" jobs] {ocaml:version >= "4.04.0"}
16]
17depends: [
18 "ocaml" {>= "4.02.3"}
19 "jbuilder" {>= "1.0+beta9"}
20 "base-unix"
21 "result"
22 "cohttp-lwt-unix" {with-test & != "3.0.0"}
23 "alcotest" {with-test}
24 "lwt" {with-test & < "4.0.0"}
25]
26synopsis: "The Dumbest Http Client"
27description: """
28Curly is a brain dead wrapper around the curl command line utility designed to
29provide a 0 dependency solution for applications that want to create some very
30simple HTTP requests. It is not blazing fast, or async, but at least it involves
31no C bindings, it's trivial to vendor, and the API can be learned in 5 minutes.
32
33Here's a simple example:
34
35```ocaml
36
37match Curly.(run (Request.make ~url:"https://opam.ocaml.org" ~meth:`GET ())) with
38| Ok x ->
39 Format.printf "status: %d\\n" x.Curly.Response.code;
40 Format.printf "headers: %a\\n" Curly.Header.pp x.Curly.Response.headers;
41 Format.printf "body: %s\\n" x.Curly.Response.body
42| Error e ->
43 Format.printf "Failed: %a" Curly.Error.pp e
44```
45
46There's not much more to it than this. Consult curly.mli to see how to construct
47various requests and read responses."""
48url {
49 src: "https://github.com/rgrinberg/curly/archive/0.1.0.zip"
50 checksum: [
51 "sha256=7c0c3a68cf9ab513e04b48c6a4d9fbff88cda5ac9622df0a0e74965b9eec829e"
52 "md5=a9db9c3d8dcc887eea3c1913cfe44461"
53 ]
54}