id
int64
0
3.78k
code
stringlengths
13
37.9k
declarations
stringlengths
16
64.6k
1,200
function (fork: Fork) { var types = fork.use(typesPlugin); var Type = types.Type; var def = Type.def; var or = Type.or; var shared = fork.use(sharedPlugin); var defaults = shared.defaults; var geq = shared.geq; const { BinaryOperators, AssignmentOperators, LogicalOperators, } = fork.use(c...
type Fork = { use<T>(plugin: Plugin<T>): T; };
1,201
function (fork: Fork) { fork.use(es2018Def); const types = fork.use(typesPlugin); const def = types.Type.def; const or = types.Type.or; const defaults = fork.use(sharedPlugin).defaults; def("CatchClause") .field("param", or(def("Pattern"), null), defaults["null"]); }
type Fork = { use<T>(plugin: Plugin<T>): T; };
1,202
function (fork: Fork) { fork.use(es2021Def); const types = fork.use(typesPlugin); const def = types.Type.def; def("StaticBlock") .bases("Declaration") .build("body") .field("body", [def("Statement")]); }
type Fork = { use<T>(plugin: Plugin<T>): T; };
1,203
function (fork: Fork) { fork.use(es2022Def); const types = fork.use(typesPlugin); const Type = types.Type; const def = types.Type.def; const or = Type.or; const shared = fork.use(sharedPlugin); const defaults = shared.defaults; def("AwaitExpression") .build("argument", "all") .field("argument...
type Fork = { use<T>(plugin: Plugin<T>): T; };
1,204
function (fork: Fork) { fork.use(es2016Def); const types = fork.use(typesPlugin); const def = types.Type.def; const defaults = fork.use(sharedPlugin).defaults; def("Function") .field("async", Boolean, defaults["false"]); def("AwaitExpression") .bases("Expression") .build("argument") .fiel...
type Fork = { use<T>(plugin: Plugin<T>): T; };
1,205
function (fork: Fork) { var types = fork.use(typesPlugin); var def = types.Type.def; var or = types.Type.or; var defaults = fork.use(sharedPlugin).defaults; var TypeAnnotation = or( def("TypeAnnotation"), def("TSTypeAnnotation"), null ); var TypeParamDecl = or( def("TypeParameterDeclarat...
type Fork = { use<T>(plugin: Plugin<T>): T; };
1,206
function (fork: import("../../types").Fork) { const result = fork.use(coreOpsDef); // Exponentiation operators. Must run before BinaryOperators or // AssignmentOperators are used (hence before fork.use(es6Def)). // https://github.com/tc39/proposal-exponentiation-operator if (result.BinaryOperators.indexOf("*...
type Fork = { use<T>(plugin: Plugin<T>): T; };
1,207
function (fork: import("../../types").Fork) { const result = fork.use(es2016OpsDef); // Nullish coalescing. Must run before LogicalOperators is used. // https://github.com/tc39/proposal-nullish-coalescing if (result.LogicalOperators.indexOf("??") < 0) { result.LogicalOperators.push("??"); } return res...
type Fork = { use<T>(plugin: Plugin<T>): T; };
1,208
function (fork: import("../../types").Fork) { const result = fork.use(es2020OpsDef); // Logical assignment operators. Must run before AssignmentOperators is used. // https://github.com/tc39/proposal-logical-assignment result.LogicalOperators.forEach(op => { const assignOp = op + "="; if (result.Assignm...
type Fork = { use<T>(plugin: Plugin<T>): T; };
1,209
(req: Request, res: Response, next?: NextFunction): void | Promise<void>
type Response<T = http.ServerResponse> = T;
1,210
(req: Request, res: Response, next?: NextFunction): void | Promise<void>
type NextFunction<T = (err?: any) => void> = T;
1,211
(req: Request, res: Response, next?: NextFunction): void | Promise<void>
type Request<T = http.IncomingMessage> = T;
1,212
(req: Request, socket: net.Socket, head: any) => void
type Request<T = http.IncomingMessage> = T;
1,213
(proxyServer: httpProxy, options: Options) => void
interface Options extends httpProxy.ServerOptions { /** * Narrow down requests to proxy or not. * Filter on {@link http.IncomingMessage.url `pathname`} which is relative to the proxy's "mounting" point in the server. * Or use the {@link http.IncomingMessage `req`} object for more complex filtering. */ ...
1,214
(req: Request) => httpProxy.ServerOptions['target']
type Request<T = http.IncomingMessage> = T;
1,215
(req: Request) => Promise<httpProxy.ServerOptions['target']>
type Request<T = http.IncomingMessage> = T;
1,216
function createProxyMiddleware(options: Options): RequestHandler { const { middleware } = new HttpProxyMiddleware(options); return middleware; }
interface Options extends httpProxy.ServerOptions { /** * Narrow down requests to proxy or not. * Filter on {@link http.IncomingMessage.url `pathname`} which is relative to the proxy's "mounting" point in the server. * Or use the {@link http.IncomingMessage `req`} object for more complex filtering. */ ...
1,217
constructor(options: Options) { verifyConfig(options); this.proxyOptions = options; debug(`create proxy server`); this.proxy = httpProxy.createProxyServer({}); this.registerPlugins(this.proxy, this.proxyOptions); this.pathRewriter = PathRewriter.createPathRewriter(this.proxyOptions.pathRewrit...
interface Options extends httpProxy.ServerOptions { /** * Narrow down requests to proxy or not. * Filter on {@link http.IncomingMessage.url `pathname`} which is relative to the proxy's "mounting" point in the server. * Or use the {@link http.IncomingMessage `req`} object for more complex filtering. */ ...
1,218
private registerPlugins(proxy: httpProxy, options: Options) { const plugins = getPlugins(options); plugins.forEach((plugin) => { debug(`register plugin: "${getFunctionName(plugin)}"`); plugin(proxy, options); }); }
interface Options extends httpProxy.ServerOptions { /** * Narrow down requests to proxy or not. * Filter on {@link http.IncomingMessage.url `pathname`} which is relative to the proxy's "mounting" point in the server. * Or use the {@link http.IncomingMessage `req`} object for more complex filtering. */ ...
1,219
async (req: Request, socket, head) => { if (this.shouldProxy(this.proxyOptions.pathFilter, req)) { const activeProxyOptions = await this.prepareProxyRequest(req); this.proxy.ws(req, socket, head, activeProxyOptions); debug('server upgrade event received. Proxying WebSocket'); } }
type Request<T = http.IncomingMessage> = T;
1,220
(pathFilter: Filter, req: Request): boolean => { return matchPathFilter(pathFilter, req.url, req); }
type Filter = string | string[] | ((pathname: string, req: Request) => boolean);
1,221
(pathFilter: Filter, req: Request): boolean => { return matchPathFilter(pathFilter, req.url, req); }
type Request<T = http.IncomingMessage> = T;
1,222
async (req: Request) => { /** * Incorrect usage confirmed: https://github.com/expressjs/express/issues/4854#issuecomment-1066171160 * Temporary restore req.url patch for {@link src/legacy/create-proxy-middleware.ts legacyCreateProxyMiddleware()} * FIXME: remove this patch in future release */ ...
type Request<T = http.IncomingMessage> = T;
1,223
async (req: Request, options) => { let newTarget; if (options.router) { newTarget = await Router.getTarget(req, options); if (newTarget) { debug('router new target: "%s"', newTarget); options.target = newTarget; } } }
type Request<T = http.IncomingMessage> = T;
1,224
async (req: Request, pathRewriter) => { if (pathRewriter) { const path = await pathRewriter(req.url, req); if (typeof path === 'string') { debug('pathRewrite new path: %s', req.url); req.url = path; } else { debug('pathRewrite: no rewritten path found: %s', req.url); ...
type Request<T = http.IncomingMessage> = T;
1,225
function verifyConfig(options: Options): void { if (!options.target && !options.router) { throw new Error(ERRORS.ERR_CONFIG_FACTORY_TARGET_MISSING); } }
interface Options extends httpProxy.ServerOptions { /** * Narrow down requests to proxy or not. * Filter on {@link http.IncomingMessage.url `pathname`} which is relative to the proxy's "mounting" point in the server. * Or use the {@link http.IncomingMessage `req`} object for more complex filtering. */ ...
1,226
function matchPathFilter(pathFilter: Filter = '/', uri: string, req: Request): boolean { // single path if (isStringPath(pathFilter as string)) { return matchSingleStringPath(pathFilter as string, uri); } // single glob path if (isGlobPath(pathFilter as string)) { return matchSingleGlobPath(pathFilte...
type Filter = string | string[] | ((pathname: string, req: Request) => boolean);
1,227
function matchPathFilter(pathFilter: Filter = '/', uri: string, req: Request): boolean { // single path if (isStringPath(pathFilter as string)) { return matchSingleStringPath(pathFilter as string, uri); } // single glob path if (isGlobPath(pathFilter as string)) { return matchSingleGlobPath(pathFilte...
type Request<T = http.IncomingMessage> = T;
1,228
function getLogger(options: Options): Logger { return (options.logger as Logger) || noopLogger; }
interface Options extends httpProxy.ServerOptions { /** * Narrow down requests to proxy or not. * Filter on {@link http.IncomingMessage.url `pathname`} which is relative to the proxy's "mounting" point in the server. * Or use the {@link http.IncomingMessage `req`} object for more complex filtering. */ ...
1,229
function getPlugins(options: Options): Plugin[] { // don't load default errorResponsePlugin if user has specified their own const maybeErrorResponsePlugin = !!options.on?.error ? [] : [errorResponsePlugin]; const defaultPlugins: Plugin[] = !!options.ejectPlugins ? [] // no default plugins when ejecting :...
interface Options extends httpProxy.ServerOptions { /** * Narrow down requests to proxy or not. * Filter on {@link http.IncomingMessage.url `pathname`} which is relative to the proxy's "mounting" point in the server. * Or use the {@link http.IncomingMessage `req`} object for more complex filtering. */ ...
1,230
function responseInterceptor(interceptor: Interceptor) { return async function proxyResResponseInterceptor( proxyRes: http.IncomingMessage, req: http.IncomingMessage, res: http.ServerResponse ): Promise<void> { debug('intercept proxy response'); const originalProxyRes = proxyRes; let buffer ...
type Interceptor = ( buffer: Buffer, proxyRes: http.IncomingMessage, req: http.IncomingMessage, res: http.ServerResponse ) => Promise<Buffer | string>;
1,231
function legacyCreateProxyMiddleware(legacyOptions: LegacyOptions): RequestHandler;
interface LegacyOptions extends Options { /** * @deprecated * Use `on.error` instead. * * @example * ```js * { * on: { * error: () => {} * } * ``` */ onError?: (...args: any[]) => void; //httpProxy.ErrorCallback; /** * @deprecated * Use `on.proxyRes` instead. * * ...
1,232
function legacyCreateProxyMiddleware( legacyContext: Filter, legacyOptions: LegacyOptions ): RequestHandler;
type Filter = string | string[] | ((pathname: string, req: Request) => boolean);
1,233
function legacyCreateProxyMiddleware( legacyContext: Filter, legacyOptions: LegacyOptions ): RequestHandler;
interface LegacyOptions extends Options { /** * @deprecated * Use `on.error` instead. * * @example * ```js * { * on: { * error: () => {} * } * ``` */ onError?: (...args: any[]) => void; //httpProxy.ErrorCallback; /** * @deprecated * Use `on.proxyRes` instead. * * ...
1,234
function isTraversal(selector: Selector): selector is Traversal { switch (selector.type) { case SelectorType.Adjacent: case SelectorType.Child: case SelectorType.Descendant: case SelectorType.Parent: case SelectorType.Sibling: case SelectorType.ColumnCombinator: ...
type Selector = | PseudoSelector | PseudoElement | AttributeSelector | TagSelector | UniversalSelector | Traversal;
1,235
function addTraversal(type: TraversalType) { if ( tokens.length > 0 && tokens[tokens.length - 1].type === SelectorType.Descendant ) { tokens[tokens.length - 1].type = type; return; } ensureNotTraversal(); tokens.push({ type }); ...
type TraversalType = | SelectorType.Adjacent | SelectorType.Child | SelectorType.Descendant | SelectorType.Parent | SelectorType.Sibling | SelectorType.ColumnCombinator;
1,236
function stringifyToken( token: Selector, index: number, arr: Selector[] ): string { switch (token.type) { // Simple types case SelectorType.Child: return index === 0 ? "> " : " > "; case SelectorType.Parent: return index === 0 ? "< " : " < "; case...
type Selector = | PseudoSelector | PseudoElement | AttributeSelector | TagSelector | UniversalSelector | Traversal;
1,237
(entry: EntryInfo) => boolean
interface EntryInfo { path: string; fullPath: string; basename: string; stats?: fs.Stats; dirent?: fs.Dirent; }
1,238
function errorMessage(options: ErrorMessageOptions): CodeKeywordDefinition { return { keyword, schemaType: ["string", "object"], post: true, code(cxt: KeywordCxt) { const {gen, data, schema, schemaValue, it} = cxt if (it.createErrors === false) return const sch: ErrorMessageSchema | ...
interface ErrorMessageOptions { keepErrors?: boolean singleError?: boolean | string }
1,239
function childErrorsConfig({properties, items}: ErrorMessageSchema): ChildErrors { const errors: ChildErrors = {} if (properties) { errors.props = {} for (const p in properties) errors.props[p] = [] } if (items) { errors.items = {} for (let i = 0; ...
type ErrorMessageSchema = { properties?: StringMap items?: string[] required?: string | StringMap dependencies?: string | StringMap _?: string } & {[K in string]?: string | StringMap}
1,240
function keywordErrorsConfig( emSchema: ErrorMessageSchema ): [{[K in string]?: ErrorsMap<string>} | undefined, ErrorsMap<string> | undefined] { let propErrors: {[K in string]?: ErrorsMap<string>} | undefined let errors: ErrorsMap<string> | undefined for (const k in emSchema) { ...
type ErrorMessageSchema = { properties?: StringMap items?: string[] required?: string | StringMap dependencies?: string | StringMap _?: string } & {[K in string]?: string | StringMap}
1,241
function processChildErrors(childErrors: ChildErrors): void { const {props, items} = childErrors if (!props && !items) return const isObj = _`typeof ${data} == "object"` const isArr = _`Array.isArray(${data})` const childErrs = gen.let("emErrors") let childKwd: Name ...
interface ChildErrors { props?: ErrorsMap<string> items?: ErrorsMap<number> }
1,242
( ajv: Ajv, options: ErrorMessageOptions = {} ): Ajv => { if (!ajv.opts.allErrors) throw new Error("ajv-errors: Ajv option allErrors must be true") if (ajv.opts.jsPropertySyntax) { throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported") } return ajv.addKeyword(errorMessage(options)) ...
interface ErrorMessageOptions { keepErrors?: boolean singleError?: boolean | string }
1,243
async callback( req: HttpProxyAgentClientRequest, opts: RequestOptions ): Promise<net.Socket> { const { proxy, secureProxy } = this; const parsed = url.parse(req.path); if (!parsed.protocol) { parsed.protocol = 'http:'; } if (!parsed.hostname) { parsed.hostname = opts.hostname || opts.host || nul...
interface HttpProxyAgentClientRequest extends ClientRequest { path: string; output?: string[]; outputData?: { data: string; }[]; _header?: string | null; _implicitHeader(): void; }
1,244
formatSchema( schema: Schema, logic?: boolean, prevSchemas?: Array<Object> ): string
type Schema = import
1,245
formatSchema( schema: Schema, logic?: boolean, prevSchemas?: Array<Object> ): string
type Schema = (JSONSchema4 | JSONSchema6 | JSONSchema7) & Extend;
1,246
formatSchema( schema: Schema, logic?: boolean, prevSchemas?: Array<Object> ): string
type Schema = import
1,247
formatValidationError(error: SchemaUtilErrorObject): string
type SchemaUtilErrorObject = import
1,248
formatValidationError(error: SchemaUtilErrorObject): string
type SchemaUtilErrorObject = ErrorObject & { children?: Array<ErrorObject>; };
1,249
formatValidationError(error: SchemaUtilErrorObject): string
type SchemaUtilErrorObject = import
1,250
function validate( schema: Schema, options: Array<object> | object, configuration?: ValidationErrorConfiguration | undefined ): void;
type Schema = import
1,251
function validate( schema: Schema, options: Array<object> | object, configuration?: ValidationErrorConfiguration | undefined ): void;
type Schema = (JSONSchema4 | JSONSchema6 | JSONSchema7) & Extend;
1,252
function validate( schema: Schema, options: Array<object> | object, configuration?: ValidationErrorConfiguration | undefined ): void;
type Schema = import
1,253
function addAbsolutePathKeyword(ajv: Ajv): Ajv;
type Ajv = import
1,254
function stringHints(schema: Schema, logic: boolean): string[];
type Schema = import
1,255
function stringHints(schema: Schema, logic: boolean): string[];
type Schema = (JSONSchema4 | JSONSchema6 | JSONSchema7) & Extend;
1,256
function stringHints(schema: Schema, logic: boolean): string[];
type Schema = import
1,257
function numberHints(schema: Schema, logic: boolean): string[];
type Schema = import
1,258
function numberHints(schema: Schema, logic: boolean): string[];
type Schema = (JSONSchema4 | JSONSchema6 | JSONSchema7) & Extend;
1,259
function numberHints(schema: Schema, logic: boolean): string[];
type Schema = import
1,260
(rangeValue: RangeValue) => boolean
type RangeValue = [number, boolean];
1,261
compile(schema: DefaultSchema, _parentSchema, it: SchemaCxt) { if (!it.opts.useDefaults || it.compositeRule) return () => true const fs: Record<string, () => any> = {} for (const key in schema) fs[key] = getDefault(schema[key]) const empty = it.opts.useDefaults === "empty" return (data: R...
type DefaultSchema = Record<string, string | PropertyDefaultSchema | undefined>
1,262
function getObjDefault({func, args}: PropertyDefaultSchema): () => any { const def = DEFAULTS[func] assertDefined(func, def) return def(args) }
interface PropertyDefaultSchema { func: string args: Record<string, any> }
1,263
function ajvKeywords(opts?: DefinitionOptions): Vocabulary { return definitions.map((d) => d(opts)).concat(selectDef(opts)) }
interface DefinitionOptions { defaultMeta?: string | boolean }
1,264
function getRequiredDef( keyword: RequiredKwd ): GetDefinition<MacroKeywordDefinition> { return () => ({ keyword, type: "object", schemaType: "array", macro(schema: string[]) { if (schema.length === 0) return true if (schema.length === 1) return {required: schema} const comb = keyw...
type RequiredKwd = "anyRequired" | "oneRequired"
1,265
function getDef(opts?: DefinitionOptions): MacroKeywordDefinition { return { keyword: "deepProperties", type: "object", schemaType: "object", macro: function (schema: Record<string, SchemaObject>) { const allOf = [] for (const pointer in schema) allOf.push(getSchema(pointer, schema[pointer...
interface DefinitionOptions { defaultMeta?: string | boolean }
1,266
function metaSchemaRef({defaultMeta}: DefinitionOptions = {}): SchemaObject { return defaultMeta === false ? {} : {$ref: defaultMeta || META_SCHEMA_ID} }
interface DefinitionOptions { defaultMeta?: string | boolean }
1,267
function getRangeDef(keyword: RangeKwd): GetDefinition<MacroKeywordDefinition> { return () => ({ keyword, type: "number", schemaType: "array", macro: function ([min, max]: [number, number]) { validateRangeSchema(min, max) return keyword === "range" ? {minimum: min, maximum: max} ...
type RangeKwd = "range" | "exclusiveRange"
1,268
function getDef(opts?: DefinitionOptions): KeywordDefinition[] { const metaSchema = metaSchemaRef(opts) return [ { keyword: "select", schemaType: ["string", "number", "boolean", "null"], $data: true, error, dependencies: ["selectCases"], code(cxt: KeywordCxt) { const...
interface DefinitionOptions { defaultMeta?: string | boolean }
1,269
(opts?: DefinitionOptions) => T
interface DefinitionOptions { defaultMeta?: string | boolean }
1,270
addRequest(req: ClientRequest, _opts: RequestOptions): void { const opts: RequestOptions = { ..._opts }; if (typeof opts.secureEndpoint !== 'boolean') { opts.secureEndpoint = isSecureEndpoint(); } if (opts.host == null) { opts.host = 'localhost'; } if (opts.port == null) { opts.port = o...
interface ClientRequest extends http.ClientRequest { _last?: boolean; _hadError?: boolean; method: string; }
1,271
( req: ClientRequest, opts: RequestOptions, fn: AgentCallbackCallback ) => void
interface ClientRequest extends http.ClientRequest { _last?: boolean; _hadError?: boolean; method: string; }
1,272
function promisify(fn: LegacyCallback): AgentCallbackPromise { return function(this: Agent, req: ClientRequest, opts: RequestOptions) { return new Promise((resolve, reject) => { fn.call( this, req, opts, (err: Error | null | undefined, rtn?: AgentCallbackReturn) => { if (err) { reject(e...
type LegacyCallback = ( req: ClientRequest, opts: RequestOptions, fn: AgentCallbackCallback ) => void;
1,273
function(this: Agent, req: ClientRequest, opts: RequestOptions) { return new Promise((resolve, reject) => { fn.call( this, req, opts, (err: Error | null | undefined, rtn?: AgentCallbackReturn) => { if (err) { reject(err); } else { resolve(rtn!); } } ); }); }
interface ClientRequest extends http.ClientRequest { _last?: boolean; _hadError?: boolean; method: string; }
1,274
(this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean
class AxiosHeaders { constructor( headers?: RawAxiosHeaders | AxiosHeaders ); [key: string]: any; set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; set(headers?: RawAxiosHeaders | AxiosHeaders, rewrite?: boolean): AxiosHeaders; get(headerName:...
1,275
(this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean
interface RawAxiosHeaders { [key: string]: AxiosHeaderValue; }
1,276
clear(matcher?: AxiosHeaderMatcher): boolean
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,277
setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders
type ContentType = AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream';
1,278
getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,279
hasContentType(matcher?: AxiosHeaderMatcher): boolean
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,280
setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders
type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
1,281
getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,282
hasContentLength(matcher?: AxiosHeaderMatcher): boolean
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,283
setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders
type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
1,284
getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,285
hasAccept(matcher?: AxiosHeaderMatcher): boolean
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,286
setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders
type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
1,287
getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,288
hasUserAgent(matcher?: AxiosHeaderMatcher): boolean
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,289
setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders
type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
1,290
getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,291
hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,292
setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders
type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
1,293
getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,294
hasAuthorization(matcher?: AxiosHeaderMatcher): boolean
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
1,295
(this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any
type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders;
1,296
(this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any
interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> { headers: AxiosRequestHeaders; }
1,297
(this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number): any
type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
1,298
(this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number): any
interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> { headers: AxiosRequestHeaders; }
1,299
(config: InternalAxiosRequestConfig): AxiosPromise
interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> { headers: AxiosRequestHeaders; }