Macfly.HTTP behaviour (macfly v0.2.21)

Copy Markdown View Source

Summary

Types

response()

@type response() :: {:ok, Req.Response.t()} | {:error, Exception.t()}

Callbacks

get(url, headers)

@callback get(url :: URI.t(), headers :: Keyword.t()) :: response()

post(url, body, headers)

@callback post(url :: URI.t(), body :: String.t(), headers :: Keyword.t()) :: response()

Functions

get(url, headers)

impl()

post(url, body, headers)