opam-version: "2.0"
maintainer: "anil@recoil.org"
authors: [
  "Anil Madhavapeddy"
  "Stefano Zacchiroli"
  "David Sheets"
  "Thomas Gazagnaire"
  "David Scott"
  "Rudi Grinberg"
  "Andy Ray"
]
homepage: "https://github.com/mirage/ocaml-cohttp"
bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
license: "ISC"
tags: [
  "org:mirage"
  "org:xapi-project"
]
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
build:   [make "PREFIX=%{prefix}%"]
install: [make "PREFIX=%{prefix}%" "install"]
remove:  ["ocamlfind" "remove" "cohttp"]

depends: [
  "ocaml"
  "ocamlfind"
  "re"
  "uri" {>= "1.5.0" & < "2.0.0"}
  "ounit"
  "fieldslib" {>= "109.20.00" & < "113.01.00"}
  "sexplib" {>= "109.53.00" & < "113.01.00"}
  "ocamlbuild" {build}
]
depopts: [
  "async"
  "async_ssl"
  "lwt"
  "ssl"
]
conflicts: [
  "async" {< "109.15.00"}
  "async" {>= "113.00.00"}
  "async_ssl" {< "111.06.00"}
  "async_ssl" {>= "112.24.00"}
  "lwt" {>= "2.4.3"}
  "lwt" {>= "2.5.0"}
]
synopsis: "HTTP library for Lwt, Async and Mirage"
description: """
If you wish to install the Lwt_unix version, then you will also need the ssl
optional package for this version.  Just do:

`opam install cohttp lwt ssl` to get a fully working HTTP(S) Lwt_unix client."""
flags: light-uninstall
url {
  src: "https://github.com/mirage/ocaml-cohttp/archive/v0.10.1.tar.gz"
  checksum: "md5=96c2c5f302966717e14ccc0b082934b4"
}
