FakeHTTP v0.1.1 FakeHTTP.Request View Source

This module represents a HTTP request.

Request properties:

  • method - HTTP method as an atom (:get, :head, :post, :put, :delete, etc.)
  • request_path - the requested path, example: /path/to/index.html
  • headers - the request headers as a map
  • body - the request body

Link to this section Summary

Link to this section Types

Link to this type

headers() View Source
headers() :: %{optional(binary()) => binary()}

Link to this type

method() View Source
method() :: :get | :post | :put | :patch | :delete | :options | :head

Link to this type

t() View Source
t() :: %FakeHTTP.Request{
  body: body(),
  headers: headers(),
  method: method(),
  request_path: binary()
}