Documentation ¶
Index ¶
- func GetContentTypeFromHeaders(headers map[string][]string) string
- func GetMinifier() *minify.M
- func GetRequestBody(request *http.Request) (string, error)
- func GetResponseBody(response *http.Response) (string, error)
- func MinifyJson(toMinify string) (string, error)
- func MinifyXml(toMinify string) (string, error)
- func PointerToString(value *string) string
- func SortQueryString(query string) string
- func StringToPointer(value string) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContentTypeFromHeaders ¶ added in v0.11.0
func GetMinifier ¶ added in v0.11.0
func GetRequestBody ¶ added in v0.10.0
GetRequestBody will read the http.Request body io.ReadCloser and will also set the buffer to the original value as the buffer will be empty after reading it.
func GetResponseBody ¶ added in v0.10.0
GetResponseBody will read the http.Response body io.ReadCloser and will also set the buffer to the original value as the buffer will be empty after reading it.
func MinifyJson ¶ added in v0.11.0
func PointerToString ¶
func SortQueryString ¶ added in v0.10.1
SortQueryString will sort a http query string alphanumerically by key and then by value.
func StringToPointer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.