Module cowboy

Data Types

http_headers()

http_headers() = [{binary(), iodata()}]

http_status()

http_status() = non_neg_integer() | binary()

http_version()

http_version() = 'HTTP/1.1' | 'HTTP/1.0'

onrequest_fun()

onrequest_fun() = fun((Req) -> Req)

onresponse_fun()

onresponse_fun() = fun((http_status(), http_headers(), iodata(), Req) -> Req)

Function Index

set_env/3
start_http/4
start_https/4
start_spdy/4
stop_listener/1

Function Details

set_env/3

set_env(Ref::ranch:ref(), Name::atom(), Value::any()) -> ok

start_http/4

start_http(Ref::ranch:ref(), NbAcceptors::non_neg_integer(), TransOpts::ranch_tcp:opts(), ProtoOpts::cowboy_protocol:opts()) -> {ok, pid()} | {error, any()}

start_https/4

start_https(Ref::ranch:ref(), NbAcceptors::non_neg_integer(), TransOpts::ranch_ssl:opts(), ProtoOpts::cowboy_protocol:opts()) -> {ok, pid()} | {error, any()}

start_spdy/4

start_spdy(Ref::ranch:ref(), NbAcceptors::non_neg_integer(), TransOpts::ranch_ssl:opts(), ProtoOpts::cowboy_spdy:opts()) -> {ok, pid()} | {error, any()}

stop_listener/1

stop_listener(Ref::ranch:ref()) -> ok | {error, not_found}


Generated by EDoc, Oct 16 2014, 12:31:58.