Back to

package headers

Latest Go to latest
Published: Feb 17, 2020 | License: MIT | Module:


func Add

func Add(key, value string) p.Plugin

Add adds the key, value pair to the header. It appends to any existing values associated with key.

func Del

func Del(key string) p.Plugin

Del deletes the header fields associated with key.

func Set

func Set(key, value string) p.Plugin

Set sets the header entries associated with key to the single element value. It replaces any existing values associated with key.

func SetMap

func SetMap(headers map[string]string) p.Plugin

SetMap sets a map of headers represented by key-value pair.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier