gentleman.v2: Index | Files

package headers

import ""


Package Files


func Add Uses

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 Uses

func Del(key string) p.Plugin

Del deletes the header fields associated with key.

func Set Uses

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 Uses

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

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

Package headers imports 2 packages (graph) and is imported by 5 packages. Updated 2020-02-18. Refresh now. Tools for package owners.