@solid/community-server
Version:
Community Solid Server: an open and modular implementation of the Solid specifications
11 lines (10 loc) • 329 B
TypeScript
import type { IncomingMessage } from 'node:http';
import type { Guarded } from '../util/GuardedStream';
/**
* An incoming HTTP request;
*/
export type HttpRequest = Guarded<IncomingMessage>;
/**
* Checks if the given stream is an HttpRequest.
*/
export declare function isHttpRequest(stream: unknown): stream is HttpRequest;