LOG IN SIGN UP
Documentation

h2.disable_header_compression()

Sets a flag to disable HTTP/2 header compression on one or many response headers to the client. Field names are case insensitive.

Calling this function will save space in the dynamic table for other, more reusable, headers. Likewise, calling this function will not put sensitive header field values at risk by compressing them.

By default, we disable compression for Cookie or Set-Cookie headers.

Format

VOID
h2.disable_header_compression(STRING header)

Examples

1
2
h2.disable_header_compression("Authorization");
h2.disable_header_compression("Authorization", "Secret");