shippo v0.1.0 Shippo.Client behaviour View Source

HTTP Client Behaviour.

Link to this section Summary

Link to this section Types

Link to this type

return()

View Source
return() ::
  {:ok, %{status_code: integer(), body: any()}} | {:error, %{reason: any()}}

Link to this section Callbacks

Link to this callback

request(method, url, header, body, opts)

View Source
request(
  method :: atom(),
  url :: binary(),
  header :: [tuple()],
  body :: any(),
  opts :: keyword()
) :: return()