Module cow_http_te

Data Types

decode_ret()

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()

state() = {non_neg_integer(), non_neg_integer()}

Function Index

chunk/1Encode a chunk.
identity/1
last_chunk/0Encode the last chunk of a chunked stream.
stream_chunked/2Decode a chunked stream.
stream_identity/2Decode an identity stream.

Function Details

chunk/1

chunk(D) -> D

Encode a chunk.

identity/1

identity(Data) -> Data

last_chunk/0

last_chunk() -> <<_:40>>

Encode the last chunk of a chunked stream.

stream_chunked/2

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}

Decode a chunked stream.

stream_identity/2

stream_identity(Data, State) -> {more, Data, Len, State} | {done, Data, Len, Data}

Decode an identity stream.


Generated by EDoc