/
githubmirror
/
nest
Обзор
Документация
Войти
/
githubmirror
/
nest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/common/file-stream/interfaces/streamable-handler-response.interface.ts
12 строк
500 B
Tony133
refactor(): improvements interface
29 янв 2023, 13:42
29 янв 2023, 13:42
283a837
Код
Авторство
О чём код?
export interface StreamableHandlerResponse { /** `true` if the connection is destroyed, `false` otherwise. */ destroyed: boolean; /** `true` if headers were sent, `false` otherwise. */ headersSent: boolean; /** The status code that will be sent to the client when the headers get flushed. */ statusCode: number; /** Sends the HTTP response. */ send: (body: string) => void; /** Signals to the server that all of the response headers and body have been sent. */ end: () => void; }