mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
23 lines
559 B
TypeScript
23 lines
559 B
TypeScript
/**
|
|
* Options for `StreamableFile`
|
|
*
|
|
* @see [Streaming files](https://docs.nestjs.com/techniques/streaming-files)
|
|
*
|
|
* @publicApi
|
|
*/
|
|
export interface StreamableFileOptions {
|
|
/**
|
|
* The value that will be used for the `Content-Type` response header.
|
|
* @default `"application/octet-stream"`
|
|
*/
|
|
type?: string;
|
|
/**
|
|
* The value that will be used for the `Content-Disposition` response header.
|
|
*/
|
|
disposition?: string | string[];
|
|
/**
|
|
* The value that will be used for the `Content-Length` response header.
|
|
*/
|
|
length?: number;
|
|
}
|