Documentation
¶
Index ¶
- func GetReqHeaders(req *http.Request) map[string][]string
- func GetResHeaders(res *http.Response) map[string][]string
- func ParseHeaders(headers map[string][]string) map[string]any
- func ParseReqURL(req *http.Request) (*url.URL, error)
- func ReadReqBody(req *http.Request) ([]byte, error)
- func ReadResBody(res *http.Response) ([]byte, error)
- type Body
- type BodyType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReqHeaders ¶
Get headers from request
func GetResHeaders ¶ added in v0.0.5
Get headers from response
func ParseHeaders ¶
Parse headers into `map[string]any`
func ParseReqURL ¶ added in v0.0.5
Outputs a URL object with fields populated from the request
func ReadReqBody ¶ added in v0.0.5
Read body from request
Types ¶
type Body ¶
func GetResBody ¶ added in v0.0.5
Get body from response
Click to show internal directories.
Click to hide internal directories.