MCPcopy Create free account
hub / github.com/Effect-TS/effect / withVary

Function withVary

packages/effect/src/http/HttpMiddleware.ts:1070–1073  ·  view source on GitHub ↗
(response: HttpServerResponse)

Source from the content-addressed store, hash-verified

1068}
1069
1070const withVary = (response: HttpServerResponse): HttpServerResponse => {
1071 const vary = compressionInternal.varyWith(response.headers, "Accept-Encoding")
1072 return Response.setHeader(response, "vary", vary)
1073}
1074
1075const defaultAlgorithms: ReadonlyArray<CompressionAlgorithm> = ["br", "gzip", "deflate"]
1076

Callers 1

transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected