Malomo.Http behaviour (malomo v2.0.0)
Link to this section Summary
Link to this section Types
Link to this type
response_t()
@type response_t() :: %{ body: String.t(), headers: Malomo.http_headers_t(), status_code: Malomo.http_status_code_t() }
Link to this section Callbacks
Link to this callback
send(request, opts)
@callback send( request :: Malomo.Request.t(), opts :: any() ) :: {:ok, response_t()} | {:error, response_t() | any()}