Skip to content

StateSerializer

Defined in: src/http/types.ts:114

Serializer for stream state objects stored in state tokens.

deserialize(bytes): any;

Defined in: src/http/types.ts:118

Decode the bytes recovered from a state token back into a state object.

ParameterType
bytesUint8Array

any


serialize(state): Uint8Array;

Defined in: src/http/types.ts:116

Encode a stream-state object into the bytes sealed inside a state token.

ParameterType
stateany

Uint8Array