Module katt_response

Accessors for katt_response.

Copyright © 2012- Klarna AB, AUTHORS

Description

Accessors for katt_response

Data Types

http_header()

http_header() = {string(), string()}

response()

response() = #katt_response{status = integer(), headers = [http_header()], body = binary() | null, parsed_body = any()} | {error, any()}

Function Index

get_body/1
get_headers/1
get_status/1
set_body/2
set_headers/2
set_status/2

Function Details

get_body/1

get_body(Katt_response::response()) -> binary() | null

get_headers/1

get_headers(Katt_response::response()) -> [http_header()]

get_status/1

get_status(Katt_response::response()) -> integer()

set_body/2

set_body(Body::binary() | null, Katt_response::response()) -> response()

set_headers/2

set_headers(Hdrs::[http_header()], Katt_response::response()) -> response()

set_status/2

set_status(Status::integer(), Katt_response::response()) -> response()


Generated by EDoc