Routemaster Client v0.2.0 Routemaster.Fetcher View Source
API client to fetch resources linked to from the events.
Link to this section Summary
Functions
GETs a resource at a give URL. It expects all URLs and services to require an Authorization HTTP header, and it will raise an exception if no auth credentials can be found for a given URL
Link to this section Types
Link to this section Functions
Link to this function
get(url, options \\ [])
View Source
get(binary, Keyword.t) :: {:ok, any} | {:error, http_status}
GETs a resource at a give URL. It expects all URLs and services to require an Authorization HTTP header, and it will raise an exception if no auth credentials can be found for a given URL.
Options
cache
(boolean): whether the cache should be checked before the request and populated after the request. Defaults totrue
, set this tofalse
to entirely skip the cache layer.