View Source simple_bridge behaviour (simple_bridge v2.3.0)
Link to this section Summary
Link to this section Types
-type bridge() :: #sbw{}.
Link to this section Callbacks
-callback build_response(req(), #response{}) -> any().
-callback headers(req()) -> [{key(), value()}] | map().
-callback host(req()) -> string().
-callback init(req()) -> req().
-callback native_header_type() -> map | list.
-callback path(req()) -> string().
-callback peer_ip(req()) -> ipv4() | ipv8().
-callback post_params(req()) -> [{key(), value()}].
-callback protocol(req()) -> http | https | ws | wss | undefined.
-callback query_params(req()) -> [{key(), value()}].
-callback request_method(req()) -> 'GET' | 'POST' | 'DELETE' | atom().
-callback uri(req()) -> string().