CPub.HTTP.Request (CPub v0.3.0) View Source

CPub.HTTP.Request struct.

Link to this section Summary

Link to this section Types

Specs

headers() :: [{String.t(), String.t()}]

Specs

method() ::
  :get | :head | :post | :put | :delete | :connect | :options | :trace | :patch

Specs

t() :: %CPub.HTTP.Request{
  body: String.t(),
  headers: headers(),
  method: method(),
  opts: keyword(),
  query: keyword(),
  url: url()
}

Specs

url() :: String.t()