Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertBody ¶
AssertBody asserts the value of the body of a request.
func SetHeaders ¶
func SetHeaders(w http.ResponseWriter)
SetHeaders sets standard headers for requests
func StripProgress ¶
StripProgress strips the output from the progress method
Types ¶
type TestServer ¶
TestServer represents a test HTTP server along with a path to a config file
func NewTestServer ¶
func NewTestServer() *TestServer
NewTestServer sets up a test HTTP Server without a configuration file.
func NewTestServerAndClient ¶
func NewTestServerAndClient() (string, *TestServer, error)
NewTestServerAndClient sets up a test HTTP Server along with a configuration file to talk to it
Click to show internal directories.
Click to hide internal directories.