Skip to main content
getPackedSettings - http2 - Node documentation
function getPackedSettings

Usage in Deno

import { getPackedSettings } from "node:http2";
getPackedSettings(settings: Settings): Buffer

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 specification. This is intended for use with the HTTP2-Settings header field.

import http2 from 'node:http2';

const packed = http2.getPackedSettings({ enablePush: false });

console.log(packed.toString('base64'));
// Prints: AAIAAAAA

Parameters

settings: Settings

Return Type

Buffer