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

method()

View Source
method() :: :get | :post | :put | :patch | :delete | :head
Link to this type

options()

View Source
options() :: [
  form: map() | Keyword.t(),
  json: map() | Keyword.t(),
  headers: map() | Keyword.t(),
  params: map() | Keyword.t(),
  decode: :json | (HTTPoison.Response.t() -> any()),
  with_result: Chaperon.Session.result_callback(),
  metrics_url: String.t()
]
Link to this type

t()

View Source
t() :: %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