header

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst, src http.Header)

func DeleteWebSocketHeaders

func DeleteWebSocketHeaders(h http.Header) error

func FromMap

func FromMap(m map[string][]string) http.Header

func Override

func Override(overrides map[string][]string) func(http.Header) error

func WebSocketHeaders

func WebSocketHeaders(h http.Header) error

WebSocketHeaders enforce WebSocket headers to be case-sensitive

Even if the websocket RFC says that headers should be case-insensitive, some servers need Sec-WebSocket-Key, Sec-WebSocket-Extensions, Sec-WebSocket-Accept, Sec-WebSocket-Protocol and Sec-WebSocket-Version to be case-sensitive. https://tools.ietf.org/html/rfc6455#page-20

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL