river v0.0.7 River.Request

Link to this section Summary

Link to this section Types

Link to this type headers()
headers ::
  [{binary, binary}] |
  %{optional(binary) => binary}

Link to this section Functions

Link to this function add_header(request, header)
Link to this function add_headers(request, list)
Link to this function header_list(map)
Link to this function new(uri, method, data \\ nil, headers \\ [])
new(URI.t, atom, any, headers) ::
  {:ok, Request.t} |
  {:error, :invalid_uri} |
  {:error, :invalid_method}

Builds a request struct returning an error if the request would be invalid.