Module cowboy

Data Types

fields()

fields() = [atom() | {atom(), cowboy_constraints:constraint() | [cowboy_constraints:constraint()]} | {atom(), cowboy_constraints:constraint() | [cowboy_constraints:constraint()], any()}]

http_headers()

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

http_status()

http_status() = non_neg_integer() | binary()

http_version()

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

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, Jan 21 2016, 11:20:07.