package http

  1. Overview
  2. Docs
Type definitions of HTTP essentials

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cohttp-6.1.1.tbz
sha256=6b420c56203b3a0b515964f036bcea0fb9a362876b5791cd7ff50e12366c489c
sha512=839ff6156658ca6d7922e6eed63ebb84dd09c76107790477be55a1ffc4a3800bf49c435147a0ed628f147eaeccff9a8d34565e3787f32c15e187b6e8855f0b93

doc/http/Http/Method/index.html

Module Http.MethodSource

Sourcetype t = [
  1. | `GET
  2. | `POST
  3. | `HEAD
  4. | `DELETE
  5. | `PATCH
  6. | `PUT
  7. | `OPTIONS
  8. | `TRACE
  9. | `CONNECT
  10. | `Other of string
]
Sourceval compare : t -> t -> int
Sourceval body_allowed : t -> bool

body_allowed meth returns whether meth allows a payload body to be present per RFC7231.

Sourceval of_string : string -> t
Sourceval to_string : t -> string
Sourceval pp : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.