FindSiteIcon.Util.HTTPUtils (FindSiteIcon v1.0.1)

Copy Markdown View Source

Small wrapper around Req with project defaults.

Summary

Functions

do_get(url, headers \\ [], opts \\ [])

@spec do_get(binary() | Req.Request.t(), keyword(), keyword()) ::
  {:error, Exception.t()} | {:ok, Req.Response.t()}

do_head(url, headers \\ [], opts \\ [])

@spec do_head(binary() | Req.Request.t(), keyword(), keyword()) ::
  {:error, Exception.t()} | {:ok, Req.Response.t()}

new(opts \\ [])

@spec new(keyword()) :: Req.Request.t()