JustBash.HttpClient behaviour (JustBash v0.4.0)
View SourceBehaviour for HTTP clients used by curl command.
Implement this behaviour to provide custom HTTP handling for testing or to use a different HTTP library.
Summary
Types
@type method() :: :get | :post | :put | :delete | :patch | :head | :options
@type response() :: %{ status: non_neg_integer(), headers: [{String.t(), String.t()}], body: String.t() | nil }