nova_stream_h (nova v0.14.3)

View Source

Summary

Types

state/0

-type state() :: #state{next :: any(), req :: term()}.

Functions

data(StreamID, IsFin, Data, State)

-spec data(cowboy_stream:streamid(), cowboy_stream:fin(), cowboy_req:resp_body(), State) ->
              {cowboy_stream:commands(), State}
              when State :: state().

early_error(StreamID, Reason, PartialReq, Resp, Opts)

info(StreamID, Info, State)

-spec info(cowboy_stream:streamid(), any(), State) -> {cowboy_stream:commands(), State}
              when State :: state().

init(StreamID, Req, Opts)

terminate(StreamID, Reason, State)

-spec terminate(cowboy_stream:streamid(), cowboy_stream:reason(), state()) -> any().