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 mapbody
- the request body
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