nova_stream_h
Types
state/0
Functions
init(StreamID, Req, Opts) ->
- StreamID = cowboy_stream:streamid()
- Req = cowboy_req:req()
- Opts = cowboy:opts()
data(StreamID, IsFin, Data, State) ->
- StreamID = cowboy_stream:streamid()
- IsFin = cowboy_stream:fin()
- Data = cowboy_req:resp_body()
- State = _
info(StreamID, Info, State) ->
- StreamID = cowboy_stream:streamid()
- Info = any()
- State = _
terminate(StreamID, Reason, State) ->
- StreamID = cowboy_stream:streamid()
- Reason = cowboy_stream:reason()
- State = state()
early_error(StreamID, Reason, PartialReq, Resp, Opts) ->
- StreamID = cowboy_stream:streamid()
- Reason = cowboy_stream:reason()
- PartialReq = cowboy_stream:partial_req()
- Resp = _
- Opts = cowboy:opts()