Skip to main content
getPackedSettings - node__http2.d.ts - Node documentation
function getPackedSettings

Usage in Deno

```typescript import { getPackedSettings } from "node:node__http2.d.ts"; ```
getPackedSettings(settings: Settings): Buffer
> [!WARNING] Deno compatibility > This function is a non-functional stub. Returns a `Buffer` instance containing serialized representation of the given HTTP/2 settings as specified in the [HTTP/2](https://tools.ietf.org/html/rfc7540) specification. This is intended for use with the `HTTP2-Settings` header field. ```js import http2 from 'node:http2'; const packed = http2.getPackedSettings({ enablePush: false }); console.log(packed.toString('base64')); // Prints: AAIAAAAA ```

Parameters

settings: Settings

Return Type

Buffer