Ankh.HTTP.Request (ankh v0.17.0)
Ankh HTTP Request
Link to this section Summary
Link to this section Types
Link to this type
method()
@type method() ::
:CONNECT | :DELETE | :GET | :HEAD | :OPTIONS | :PATCH | :POST | :PUT | :TRACE
Request method
Link to this type
options()
@type options() :: keyword()
HTTP request options
Link to this type
path()
@type path() :: String.t()
Request path
Link to this type
query()
@type query() :: Enum.t()
Request query
@type t() :: %Ankh.HTTP.Request{ body: Ankh.HTTP.body(), headers: Ankh.HTTP.headers(), method: method(), options: options(), path: path(), trailers: Ankh.HTTP.headers() }
HTTP Request
Link to this section Functions
Link to this function
from_uri(uri)
Link to this function
new(attrs \\ [])
Link to this function
put_options(request, new_options)
Link to this function
put_path(request, path)
Link to this function
put_query(request, query)
Link to this function
put_uri(request, uri)
Link to this function
set_body(request, body)
Link to this function
set_method(request, method)
Link to this function
set_path(request, path)
Link to this function
set_query(request, query)
Link to this function
to_uri(map)
Link to this function
validate_headers(headers, strict, forbidden \\ [])
@spec validate_headers(Ankh.HTTP.headers(), boolean(), [Ankh.HTTP.header_name()]) :: :ok | {:error, :protocol_error}