MCPcopy
hub / github.com/fastify/fastify / hasHeader

Method hasHeader

types/reply.d.ts:59–59  ·  view source on GitHub ↗
(key: HttpHeader)

Source from the content-addressed store, hash-verified

57 getHeaders(): Record<HttpHeader, number | string | string[] | undefined>;
58 removeHeader(key: HttpHeader): FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider>;
59 hasHeader(key: HttpHeader): boolean;
60 redirect(url: string, statusCode?: number): FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider>;
61 writeEarlyHints(hints: Record<string, string | string[]>, callback?: () => void): void;
62 hijack(): FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider>;

Callers 4

reply.jsFile · 0.80
httpHeaderHandlerFunction · 0.80
reply.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected