nova_stream_h (nova v0.9.1) View Source

Link to this section Summary

Link to this section Types

Specs

state() :: #state{}.

Link to this section Functions

Link to this function

data(StreamID, IsFin, Data, State)

View Source

Specs

data(cowboy_stream:streamid(), cowboy_stream:fin(), cowboy_req:resp_body(), State) ->
        {cowboy_stream:commands(), State}
        when State :: state().
Link to this function

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

View Source

Specs

early_error(cowboy_stream:streamid(),
            cowboy_stream:reason(),
            cowboy_stream:partial_req(),
            Resp,
            cowboy:opts()) ->
               Resp
               when Resp :: cowboy_stream:resp_command().
Link to this function

info(StreamID, Info, State)

View Source

Specs

info(cowboy_stream:streamid(), any(), State) -> {cowboy_stream:commands(), State}
        when State :: state().
Link to this function

init(StreamID, Req, Opts)

View Source

Specs

init(cowboy_stream:streamid(), cowboy_req:req(), cowboy:opts()) ->
        {cowboy_stream:commands(), state()}.
Link to this function

terminate(StreamID, Reason, State)

View Source

Specs

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