util

package
v1.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSettingsDir

func GetSettingsDir() string

GetSettingsDir returns the path to the settings folder

func GetTmpDir

func GetTmpDir() string

GetTmpDir returns the path to a temporary folder

func IsNil

func IsNil(i interface{}) bool

func NormalizeRequest

func NormalizeRequest(rawReq string) string

NormalizeRequest adds missing headers to a request

func RequestToString

func RequestToString(r *http.Request) string

RequestToString returns a string representation of a given HTTP request

func RequestsEquals

func RequestsEquals(r1 *http.Request, r2 *http.Request) bool

RequestsEquals returns if two requests are equal

func ResponseToString

func ResponseToString(r *http.Response, responseBodyBytes bool) string

ResponseToString returns a string representation of a given HTTP response

func ResponsesEquals

func ResponsesEquals(r1 *http.Response, r2 *http.Response) bool

ResponsesEquals returns if two responses are equal

Types

This section is empty.

Jump to

Keyboard shortcuts

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