When the client provides Accept-Encoding header, if the server supports the encoding, it will
compress the response body. This will reduce the size of the response body and improve the
performance of the application.
On the other hand, if the client sends Content-Encoding header, the server will decompress the
request body before processing it. This will allow the server to handle the request body in its
original form. If the server does not support the encoding, it will respond with
415 Unsupported Media Type status code.
serverAdapter's fetch function handles the compression and decompression of the request and
response bodies.
import { createServerAdapter, Response, useContentEncoding } from '@whatwg-node/server'
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps @whatwg-node/server from 0.9.36 to 0.9.38.
Changelog
Sourced from
@whatwg-node/server
's changelog.Commits
829dfef
Upcoming Release Changes (#1484)f7bcbea
feat(server/compression): supportContent-Encoding: null
57e0486
Upcoming Release Changes (#1477)481bdfd
feat(server): handle compression/decompression bodies (#1481)bc3c5a8
chore(deps): update dependency@types/node
to v20.14.12 (#1476)1c5b838
fix(node-fetch): Body.clone0c8bdea
chore(deps): update all non-major dependencies (#1462)e2cd05e
chore(deps): update dependency@types/node
to v20.14.10 (#1438)b6de23e
Update tslib to relax Renovate3211e11
chore(deps): update all non-major dependencies (#1421)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show