Module leptus_req

Behaviours: gen_server.

Function Index

auth/2
body/1
body_qs/1
body_raw/1
code_change/3
get_req/1
handle_call/3
handle_cast/2
handle_info/2
header/2
header/3
init/1
method/1
param/2
params/1
parse_header/2
peer/1
qs/1
qs_val/2
qs_vals/1
reply/2
reply/4
set_req/2
start/1
start_link/1
stop/1
terminate/2
uri/1
version/1

Function Details

auth/2

auth(Pid::pid(), X2::basic) -> {binary(), binary()} | undefined | {error, any()}

body/1

body(Pid::pid()) -> binary() | [{binary(), binary() | true}] | jsx:json_term() | term()

body_qs/1

body_qs(Pid::pid()) -> [{binary(), binary() | true}] | {error, term()}

body_raw/1

body_raw(Pid::pid()) -> binary() | {error, term()} | {more, binary()}

code_change/3

code_change(OldVsn, Req, Extra) -> any()

get_req/1

get_req(Pid::pid()) -> cowboy_req:req()

handle_call/3

handle_call(Msg, From, Req) -> any()

handle_cast/2

handle_cast(Msg, Req) -> any()

handle_info/2

handle_info(Info, Req) -> any()

header/2

header(Pid::pid(), Name::binary()) -> binary() | undefined

header/3

header(Pid::pid(), Name::binary(), Default) -> binary() | Default

init/1

init(Req) -> any()

method/1

method(Pid::pid()) -> binary()

param/2

param(Pid::pid(), Key::atom()) -> binary() | undefined

params/1

params(Pid::pid()) -> [{atom(), binary()}] | undefined

parse_header/2

parse_header(Pid::pid(), Name::binary()) -> any() | undefined | {error, any()}

peer/1

peer(Pid::pid()) -> {inet:ip_address(), inet:port_number()}

qs/1

qs(Pid::pid()) -> binary()

qs_val/2

qs_val(Pid::pid(), Key::binary()) -> binary() | undefined

qs_vals/1

qs_vals(Pid::pid()) -> [{binary(), binary() | true}]

reply/2

reply(Pid::pid(), Status::cowboy:http_status()) -> ok

reply/4

reply(Pid::pid(), Status::cowboy:http_status(), Headers::cowboy:http_headers(), Body::iodata()) -> ok

set_req/2

set_req(Pid::pid(), Req::cowboy_req:req()) -> ok

start/1

start(Req::cowboy_req:req()) -> {ok, pid()} | ignore | {error, any()}

start_link/1

start_link(Req::cowboy_req:req()) -> {ok, pid()} | ignore | {error, any()}

stop/1

stop(Pid::pid()) -> ok

terminate/2

terminate(Reason, Req) -> any()

uri/1

uri(Pid::pid()) -> binary()

version/1

version(Pid::pid()) -> cowboy:http_version()


Generated by EDoc