Copyright © 2012- Klarna AB, AUTHORS
body() = null | binary()
callbacks() = [{atom(), function()}]
details() = any()
headers() = [{string(), string()}]
http_header() = {string(), string()}
param_name() = string() | atom()
param_value() = atom() | integer() | float() | string() | binary()
params() = [{param_name(), param_value()}]
recall_scope() = url | status | headers | body | text
request() = #katt_request{method = string(), url = string(), headers = [http_header()], body = binary() | null}
response() = #katt_response{status = integer(), headers = [http_header()], body = binary() | null, parsed_body = any()} | {error, any()}
ext/1 | Get a list of available extensions. |
parse/4 | Parse the body of e.g. |
progress/2 | Notify of scenario progress. |
recall/4 | Recall all params inside url/status/headers/body/text content. |
request/3 | Make a request, e.g. |
text_diff/2 | Perform a text diff. |
transform/4 | Transform a request or a response. |
validate/4 | Validate a response. |
validate_type/6 |
ext(X1::any()) -> list()
Get a list of available extensions
parse(Hdrs::headers(), Body::body(), Params::params(), Callbacks::callbacks()) -> any()
Parse the body of e.g. an HTTP response.
progress(Step::term(), Detail::any()) -> ok
Notify of scenario progress
recall(Scope::recall_scope(), Input::any(), Params::params(), Callbacks::callbacks()) -> any()
Recall all params inside url/status/headers/body/text content.
request(R::request(), Params::params(), Callbacks::callbacks()) -> response()
Make a request, e.g. an HTTP request.
text_diff(A::list(), B::list()) -> proplists:proplist()
Perform a text diff
transform(Id::list(), Katt_request::request() | {response(), list()}, Params::params(), Callbacks::callbacks()) -> request() | response()
Transform a request or a response
validate(Expected::response(), Actual::response(), Params::params(), Callbacks::callbacks()) -> {pass, details()} | {fail, details()}
Validate a response.
validate_type(Type, ParentKey, Expected, Actual, ItemsMode, Callbacks) -> any()
Generated by EDoc