Documentation
¶
Index ¶
- Variables
- func GetContentType(req *http.Request) string
- func GetCookie(req *http.Request, key string) string
- func GetRespCookie(resp *http.Response, key string) []byte
- func ReadBody(resp *http.Response) []byte
- func SetBody(req *http.Request, body []byte)
- func SetContentType(req *http.Request, ct string)
- func SetCookie(req *http.Request, k, v string)
- func SetRespCookie(resp *http.Response, cookie *http.Cookie)
- func SetURI(req *http.Request, url string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidReq = errors.New("rest consumer call arg is not *http.Request type")
ErrInvalidReq invalid input
Functions ¶
func GetContentType ¶
GetContentType is a method used for getting content-type in a request
func GetRespCookie ¶
GetRespCookie returns response Cookie.
func SetContentType ¶
SetContentType is a method used for setting content-type in a request
func SetRespCookie ¶
SetRespCookie sets the cookie.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.