FakeHTTP v0.3.2 FakeHTTP.Request View Source
This module represents a HTTP request.
Request
properties:
host
- the requested host as a binary, example:"www.example.com"
method
- HTTP method as an atom (:get
,:head
,:post
,:put
,:delete
, etc.)scheme
- the request scheme as an atom, example::http
port
- the requested port as an integer, example:80
request_path
- the requested path, example:/path/to/index.html
headers
- the request headers as a mapbody
- the request bodyquery_string
- the request query string as a binary, example:"foo=bar"
Link to this section Summary
Link to this section Types
Link to this type
body()
View Source
body()
View Source
body() :: term()
body() :: term()
Link to this type
headers() View Source
Link to this type
method()
View Source
method()
View Source
method() :: :get | :post | :put | :patch | :delete | :options | :head
method() :: :get | :post | :put | :patch | :delete | :options | :head
Link to this type
scheme()
View Source
scheme()
View Source
scheme() :: atom()
scheme() :: atom()