HttpContentStreamDisassembler class

Disassembler for Http content stream

Extends

Constructors

HttpContentStreamDisassembler(PayloadSender, HttpContentStream)

Initializes a new instance of the HttpContentStreamDisassembler class.

Properties

contentStream
payloadType

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

HttpContentStreamDisassembler(PayloadSender, HttpContentStream)

Initializes a new instance of the HttpContentStreamDisassembler class.

new HttpContentStreamDisassembler(sender: PayloadSender, contentStream: HttpContentStream)

Parameters

sender
PayloadSender

The PayloadSender to send the disassembled data to.

contentStream
HttpContentStream

The HttpContentStream to be disassembled.

Property Details

contentStream

contentStream: HttpContentStream

Property Value

payloadType

payloadType: PayloadTypes

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 Strea.

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