Metabase.Request (metabase v0.0.0)
HTTP request sent to an endpoint.
Link to this section Summary
Functions
Builds a Metabase.HTTP.Request
struct.
Adds a new request header if not present. Otherwise, replaces the previous value.
Adds the Metabase session header if provided.
Link to this section Types
@type t() :: %Metabase.Request{ body: String.t(), headers: Metabase.HTTP.headers_t(), method: Metabase.HTTP.method_t(), private: map(), url: String.t() }
Link to this section Functions
Link to this function
new(operation, opts)
@spec new(Metabase.RequestOperation.t(), any()) :: t()
Builds a Metabase.HTTP.Request
struct.
Link to this function
put_header(request, key, value)
Adds a new request header if not present. Otherwise, replaces the previous value.
Link to this function
put_session(request, session_id)
Adds the Metabase session header if provided.