aimpress-chatbot/node_modules/botframework-streaming/lib/httpContentStream.d.ts
“SamoilenkoVadym” 55445dbc86
Some checks failed
Build and deploy Node.js app to Azure Web App - ChatBot2222 / build (push) Has been cancelled
Build and deploy Node.js app to Azure Web App - ChatBot2222 / deploy (push) Has been cancelled
Deploy bot to Azure
2025-04-27 19:55:19 +01:00

41 lines
No EOL
1.6 KiB
TypeScript

import { IHttpContentHeaders } from './interfaces';
import type { SubscribableStream } from './subscribableStream';
/**
* An attachment contained within a StreamingRequest's stream collection, which itself contains any form of media item.
*/
export declare class HttpContentStream {
readonly content: HttpContent;
readonly id: string;
description: {
id: string;
type: string;
length: number;
};
/**
* Initializes a new instance of the [HttpContentStream](xref:botframework-streaming.HttpContentStream) class.
*
* @param content The [HttpContent](xref:botframework-streaming.HttpContent) to assign to the [HttpContentStream](xref:botframework-streaming.HttpContentStream).
*/
constructor(content: HttpContent);
}
/**
* The HttpContent class that contains a [SubscribableStream](xref:botframework-streaming.SubscribableStream).
*/
export declare class HttpContent {
headers: IHttpContentHeaders;
private readonly stream;
/**
* Initializes a new instance of the [HttpContent](xref:botframework-streaming.HttpContent) class.
*
* @param headers The Streaming Http content header definition.
* @param stream The stream of buffered data.
*/
constructor(headers: IHttpContentHeaders, stream: SubscribableStream);
/**
* Gets the data contained within this [HttpContent](xref:botframework-streaming.HttpContent).
*
* @returns This [HttpContent's](xref:botframework-streaming.HttpContent) [SubscribableStream](xref:botframework-streaming.SubscribableStream) member.
*/
getStream(): SubscribableStream;
}
//# sourceMappingURL=httpContentStream.d.ts.map