TaxJar. Requests. HTTPBehaviour behaviour
(tax_jar v0.4.0)
Copy Markdown
Behaviour to define an HTTP adapter for the TaxJar API.
Summary
Callbacks
Perform an HTTP POST request to the given path with the given body.
Callbacks
@callback post( path :: binary(), body :: map(), opts :: keyword() ) :: {:ok, map()} | {:error, TaxJar.Requests.Error.t()}
Perform an HTTP POST request to the given path with the given body.
The options should be utilized to the configured adapter so that one can specify additional configuration like timeouts, headers, etc.