Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
16 lines
628 B
Plaintext
16 lines
628 B
Plaintext
/// <reference types="node" />
|
|
import { IncomingMessage } from "http";
|
|
|
|
export = typeIs;
|
|
|
|
declare function typeIs(request: IncomingMessage, types: string[]): string | false | null;
|
|
declare function typeIs(request: IncomingMessage, ...types: string[]): string | false | null;
|
|
|
|
declare namespace typeIs {
|
|
function normalize(type: string): string | false;
|
|
function hasBody(request: IncomingMessage): boolean;
|
|
function is(mediaType: string, types: string[]): string | false;
|
|
function is(mediaType: string, ...types: string[]): string | false;
|
|
function match(expected: false | string, actual: string): boolean;
|
|
}
|