/
TON618OFF
/
FinalPWHTML
Обзор
Документация
Войти
/
TON618OFF
/
FinalPWHTML
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/@tinyhttp/send/dist/send.d.ts
20 строк
871 B
TON618OFF
не ну это ваще
23 июн 2024, 00:30
23 июн 2024, 00:30
e27ae20
Код
Авторство
О чём код?
/// <reference types="node" /> import type { IncomingMessage as I, ServerResponse as S } from 'node:http'; type Req = Pick<I, 'method'> & { fresh?: boolean; }; type Res = Pick<S, 'setHeader' | 'removeHeader' | 'end' | 'getHeader' | 'statusCode'>; /** * Sends the HTTP response. * * The body parameter can be a Buffer object, a string, an object, or an array. * * This method performs many useful tasks for simple non-streaming responses. * For example, it automatically assigns the Content-Length HTTP response header field (unless previously defined) and provides automatic HEAD and HTTP cache freshness support. * * @param req Request * @param res Response */ export declare const send: <Request_1 extends Req = Req, Response_1 extends Res = Res>(req: Request_1, res: Response_1) => (body: any) => Response_1; export {}; //# sourceMappingURL=send.d.ts.map