RequestDisassembler class

Streaming request disassembler.

Extends

Constructors

RequestDisassembler(PayloadSender, string, StreamingRequest)

Initializes a new instance of the RequestDisassembler class.

Properties

payloadType
request

Methods

getStream()

Gets the stream this disassembler is operating on.

Inherited Methods

disassemble()

Begins the process of disassembling a payload and sending the resulting chunks to the PayloadSender to dispatch over the transport.

Constructor Details

RequestDisassembler(PayloadSender, string, StreamingRequest)

Initializes a new instance of the RequestDisassembler class.

new RequestDisassembler(sender: PayloadSender, id: string, request?: StreamingRequest)

Parameters

sender
PayloadSender

The PayloadSender to send the disassembled data to.

id

string

The ID of this disassembler.

request
StreamingRequest

The request to be disassembled.

Property Details

payloadType

payloadType: PayloadTypes

Property Value

request

request?: StreamingRequest

Property Value

Method Details

getStream()

Gets the stream this disassembler is operating on.

function getStream(): Promise<IStreamWrapper>

Returns

Promise<IStreamWrapper>

An IStreamWrapper with a Subscribable Stream.

Inherited Method Details

disassemble()

Begins the process of disassembling a payload and sending the resulting chunks to the PayloadSender to dispatch over the transport.

function disassemble(): Promise<void>

Returns

Promise<void>

A completed Promise after the disassembled payload has been sent.

Inherited From PayloadDisassembler.disassemble