View Source backwater_cowboy_handler (backwater v3.6.0)
Summary
Types
-type backwater_opts() ::
#{compression_threshold => non_neg_integer(),
decode_unsafe_terms => boolean(),
max_encoded_args_size => non_neg_integer(),
recv_timeout => timeout(),
return_exception_stacktraces => boolean()}.
-type call_exception() :: {exception, {raisable_class(), Exception :: term(), [backwater:stack_item()]}}.
-type call_result() :: {return, term()} | call_exception().
-type http_headers() :: #{binary() => binary()}.
-type http_status() :: cowboy:http_status().
-type opts(TransportOpts, HttpOpts) :: #{transport => TransportOpts, http => HttpOpts, backwater => backwater_opts()}.
-type raisable_class() :: error | exit | throw.
-type req() :: cowboy_req:req().
-type response() :: #{status_code := http_status(), headers := http_headers(), body := iodata()}.
-opaque state()