ankh v0.8.2 Ankh.HTTP.Request
Ankh HTTP Request
Link to this section Summary
Link to this section Types
Link to this type
method()
Specs
method() :: :CONNECT | :DELETE | :GET | :HEAD | :OPTIONS | :PATCH | :POST | :PUT | :TRACE
Request method
Link to this type
options()
Specs
options() :: Keyword.t()
HTTP request options
Link to this type
path()
Specs
path() :: String.t()
Request path
Specs
t() :: %Ankh.HTTP.Request{ body: Ankh.HTTP.body() | nil, headers: Ankh.HTTP.headers(), method: method(), options: options(), path: path(), trailers: term() }
HTTP Request
Link to this section Functions
Link to this function
from_uri(uri)
Specs
Link to this function
new(attrs \\ [])
Specs
Link to this function
put_header(request, header, value)
Specs
put_header(t(), Ankh.HTTP.header_name(), Ankh.HTTP.header_value()) :: t()
Link to this function
put_headers(request, headers)
Specs
put_headers(t(), Ankh.HTTP.headers()) :: t()
Link to this function
put_options(request, new_options)
Specs
Link to this function
put_path(request, path)
Specs
Link to this function
put_query(request, query)
Specs
Link to this function
put_trailer(request, header, value)
Specs
put_trailer(t(), Ankh.HTTP.header_name(), Ankh.HTTP.header_value()) :: t()
Link to this function
put_trailers(request, trailers)
Specs
put_trailers(t(), Ankh.HTTP.headers()) :: t()
Link to this function
put_uri(request, uri)
Specs
Link to this function
set_body(request, body)
Specs
Link to this function
set_method(request, method)
Specs
Link to this function
set_path(request, path)
Specs
Link to this function
set_query(request, query)
Specs
Link to this function