MCPcopy
hub / github.com/fastify/fastify / getHeader

Method getHeader

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

Source from the content-addressed store, hash-verified

54 header(key: HttpHeader, value: any): FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider>;
55 headers(values: Partial<Record<HttpHeader, number | string | string[] | undefined>>): FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider>;
56 getHeader(key: HttpHeader): number | string | string[] | undefined;
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;

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected