decode_ret() = more | {more, Data::binary(), state()} | {more, Data::binary(), RemLen::non_neg_integer(), state()} | {more, Data::binary(), Rest::binary(), state()} | {done, HasTrailers::trailers | no_trailers, Rest::binary()} | {done, Data::binary(), HasTrailers::trailers | no_trailers, Rest::binary()}
state() = {non_neg_integer(), non_neg_integer()}
| chunk/1 | Encode a chunk. |
| identity/1 | |
| last_chunk/0 | Encode the last chunk of a chunked stream. |
| stream_chunked/2 | Decode a chunked stream. |
| stream_identity/2 | Decode an identity stream. |
chunk(D) -> D
D = iodata()
Encode a chunk.
identity(Data) -> Data
Data = iodata()
last_chunk() -> <<_:40>>
Encode the last chunk of a chunked stream.
stream_chunked(Data, State) -> more | {more, Data, State} | {more, Data, non_neg_integer(), State} | {more, Data, Data, State} | {done, HasTrailers, Data} | {done, Data, HasTrailers, Data}
Data = binary()State = state()HasTrailers = trailers | no_trailers
Decode a chunked stream.
stream_identity(Data, State) -> {more, Data, Len, State} | {done, Data, Len, Data}
Data = binary()State = state()Len = non_neg_integer()
Decode an identity stream.
Generated by EDoc