package aws

  1. Overview
  2. Docs

This contains the http-library agnostic representation of requests to be used by runtime implementations.

type meth = [
  1. | `DELETE
  2. | `GET
  3. | `HEAD
  4. | `OPTIONS
  5. | `CONNECT
  6. | `TRACE
  7. | `Other of string
  8. | `PATCH
  9. | `POST
  10. | `PUT
]

HTTP methods. This is (intentionally) compatible with Cohttp.Code.meth to make the cohttp-based runtime implementation easier.

val string_of_meth : meth -> string

Produces a string from the method. This is needed for AWS request signing.

type headers = (string * string) list

HTTP headers.

type signature_version =
  1. | V4
  2. | V2
  3. | S3
    (*

    Signature version

    *)
type t = meth * Uri.t * headers

A request is a method, a uri, and a list of headers.

OCaml

Innovation. Community. Security.