Types

Table of Contents

Types

json_term() = [json_term()]
	      | {binary() | atom(), json_term()}
	      | true
	      | false
	      | null
	      | integer()
	      | float()
	      | binary()

Route    = cowboy_router:route_match()
Req      = pid()
Status   = non_neg_integer() | binary()
Body     = string() | binary() | {json | msgpack, json_term()} | {html, binary()}
Headers  = [{binary(), iodata()}]

Handlers = [{HostMatch, [{module(), any()}]}]

Option   = {nb_acceptors, non_neg_integer()}
	 | {ip, inet:ip_address()}
	 | {port, inet:port_number()}
	 | {cacertfile, file:name_all()}
	 | {certfile, file:name_all()}
	 | {keyfile, file:name_all()}
Options  = [Option]

Author: Sina Samavati

Created: 2026-04-17 Fri 11:06

Validate