Back to godoc.org
gopkg.in/h2non/gentleman.v2/plugins/headers

package headers

v2.0.4
Latest Go to latest
Published: Feb 17, 2020 | License: MIT | Module: gopkg.in/h2non/gentleman.v2

Index

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