header

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accept

func Accept(value string) wrapper.CallWrapper

func Add

func Add(key, value string) wrapper.CallWrapper

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

func ContentType

func ContentType(value string) wrapper.CallWrapper

func Del

func Del(key string) wrapper.CallWrapper

Del deletes the header fields associated with key.

func DelAll

func DelAll() wrapper.CallWrapper

DelAll deletes all headers

func Origin

func Origin(value string) wrapper.CallWrapper

func Referer

func Referer(value string) wrapper.CallWrapper

func Set

func Set(key, value string) wrapper.CallWrapper

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

func SetHeader added in v0.1.13

func SetHeader(header http.Header) wrapper.CallWrapper

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

func SetMap

func SetMap(headers map[string]string) wrapper.CallWrapper

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

func UserAgent

func UserAgent(value string) wrapper.CallWrapper

Types

This section is empty.

Jump to

Keyboard shortcuts

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