chaperon v0.3.1 Chaperon.Action.HTTP View Source
HTTP based actions to be run in a Chaperon.Scenario module for a given
Chaperon.Session.
This supports GET, POST, PUT, PATCH, DELETE & HEAD requests with
support for optional headers & query params.
Link to this section Summary
Link to this section Types
Link to this type
t()
View Sourcet() :: %Chaperon.Action.HTTP{
body: binary(),
callback: Chaperon.Session.result_callback(),
decode: :json | (HTTPoison.Response.t() -> any()),
headers: map(),
method: method(),
metrics_url: String.t(),
params: map(),
path: String.t()
}
Link to this section Functions
Link to this function
add_options(action, opts)
View Sourceadd_options(any(), Chaperon.Action.HTTP.options()) :: t()