Documentation ¶
Index ¶
- func Accept(value string) wrapper.CallWrapper
- func Add(key, value string) wrapper.CallWrapper
- func ContentType(value string) wrapper.CallWrapper
- func Del(key string) wrapper.CallWrapper
- func DelAll() wrapper.CallWrapper
- func Origin(value string) wrapper.CallWrapper
- func Referer(value string) wrapper.CallWrapper
- func Set(key, value string) wrapper.CallWrapper
- func SetHeader(header http.Header) wrapper.CallWrapper
- func SetMap(headers map[string]string) wrapper.CallWrapper
- func UserAgent(value string) wrapper.CallWrapper
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 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.
Click to show internal directories.
Click to hide internal directories.