Download node_modules/@hono/node-server/dist/request.d.ts from Snapkitty/agentscope-sift: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/Snapkitty/agentscope-sift/resolve/main/node_modules/%40hono/node-server/dist/request.d.ts
- Command line
-
hf download hf://Snapkitty/agentscope-sift/node_modules/@hono/node-server/dist/request.d.ts
-
curl -L -o request.d.ts https://huggingface.co/Snapkitty/agentscope-sift/resolve/main/node_modules/%40hono/node-server/dist/request.d.ts
1.08 kB
| import { IncomingMessage } from 'node:http'; | |
| import { Http2ServerRequest } from 'node:http2'; | |
| declare class RequestError extends Error { | |
| constructor(message: string, options?: { | |
| cause?: unknown; | |
| }); | |
| } | |
| declare const toRequestError: (e: unknown) => RequestError; | |
| declare const GlobalRequest: { | |
| new (input: RequestInfo | URL, init?: RequestInit): globalThis.Request; | |
| prototype: globalThis.Request; | |
| }; | |
| declare class Request extends GlobalRequest { | |
| constructor(input: string | Request, options?: RequestInit); | |
| } | |
| type IncomingMessageWithWrapBodyStream = IncomingMessage & { | |
| [wrapBodyStream]: boolean; | |
| }; | |
| declare const wrapBodyStream: unique symbol; | |
| declare const abortControllerKey: unique symbol; | |
| declare const getAbortController: unique symbol; | |
| declare const newRequest: (incoming: IncomingMessage | Http2ServerRequest, defaultHostname?: string) => any; | |
| export { GlobalRequest, type IncomingMessageWithWrapBodyStream, Request, RequestError, abortControllerKey, getAbortController, newRequest, toRequestError, wrapBodyStream }; | |