UNPKG

@freemework/hosting

Version:

Hosting library of the Freemework Project.

15 lines (14 loc) 583 B
import { FCancellationToken } from "@freemework/common"; import * as http from "http"; export declare class FHttpRequestCancellationToken implements FCancellationToken { private readonly _onClientDisconnectBound; private readonly _cancelListeners; private readonly _request; private _isCancellationRequested; constructor(request: http.IncomingMessage); get isCancellationRequested(): boolean; addCancelListener(cb: Function): void; removeCancelListener(cb: Function): void; throwIfCancellationRequested(): void; private _onClientDisconnect; }