terminate(StreamID, Reason, State) -> ok StreamID :: cowboy_stream:stream_id() Reason :: cowboy_stream:reason() State - opaque
cowboy_stream:terminate - Terminate a stream
terminate(StreamID, Reason, State) -> ok StreamID :: cowboy_stream:stream_id() Reason :: cowboy_stream:reason() State - opaque
Terminate a stream.
This function must be called by all stream handlers. It will terminate the next configured stream handler.
The stream ID.
Reason for termination.
The state for the next stream handler.
The atom ok
is always returned. It can be safely ignored.
terminate(StreamID, Reason, State=#state{next=Next0}) -> my_termination(State), cowboy_stream:terminate(StreamID, Reason, Next0).
cowboy_stream(3), cowboy_stream:init(3), cowboy_stream:data(3), cowboy_stream:info(3), cowboy_stream:early_error(3)
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.