cast(Event :: any(), Req :: cowboy_req:req()) -> ok
cowboy_req:cast - Cast a stream handler event
cast(Event :: any(), Req :: cowboy_req:req()) -> ok
Cast a stream handler event.
The event will be passed to stream handlers through the info/3
callback.
The event to be sent to stream handlers.
The Req object.
The atom ok
is always returned. It can be safely ignored.
cowboy_req:cast({set_options, #{ idle_timeout => 3600000 }}, Req).
cowboy_req:cast({set_options, #{ metrics_user_data => #{handler => ?MODULE} }}, Req).
cowboy_req:cast({set_options, #{ compress_buffering => true }}, Req).
Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:
Recurring payment options are also available via GitHub Sponsors. These funds are used to cover the recurring expenses like food, dedicated servers or domain names.