MCPcopy
hub / github.com/fastify/fastify / header

Method header

types/reply.d.ts:54–54  ·  view source on GitHub ↗
(key: HttpHeader, value: any)

Source from the content-addressed store, hash-verified

52 sent: boolean;
53 send(...args: SendArgs<ReplyType>): FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider>;
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>;

Callers 15

headRouteOnSendHandlerFunction · 0.80
reply.jsFile · 0.80
onSendEndFunction · 0.80
onDoneFunction · 0.80
route.8.test.jsFile · 0.80
route.7.test.jsFile · 0.80
404s.test.jsFile · 0.80
hooks.test.jsFile · 0.80
web-api.test.jsFile · 0.80
stream.5.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected