# Functions
AssertConnected tries to connect to a given host several times fails if unable to connect.
AssertJSONEquals makes sure two json byte slices are equal Note: Does not currently work on arrays.
GetFastURLResponse gets a fasthttp url with standard headers allows a user to run a function against the response before it is released TODO make this use the fasthttp library.
GetFreePort returns a freeport, throw error if not available.
GetFreePorts returns a freeport, throw error into test object if not available.
GetGitRoot gets the root directory of the current package this is useful for testing file generation, especially for automated swagger-like documentation.
GetUnfreePort gets a free port and start an http server on it so its taken.
GetUnFreePort gets a port and start an http server on it to mock a taken port.
GetUnfreePorts gets a list of ports that are taken.
MockFile creates a file with random contents and return the location.
MockHandler mocks an http handler that's not nil.
MockHTTPServer runs a mock http server on a given port.
NewFastHTTPMock creates a mock server by overriding client this allows us to test fathttp servers without actually standing up a server.
NewRouter allows you to wrap a fast http server around regular http.handler funcs.
PortIsAvailable will determine if a port is available.
WaitForConnect on a port progressively backing off returns false if we couldn't establish a connection uses default timeout of 5 seconds deprecated: use WaitForConnect in main package.
WaitForConnectTimeout will wait for a connection on a port progressively backing off returns false if we couldn't establish a connection by timeout after 10 timeouts deprecated: use WaitForConnectTimeout in main package.
WrapHandler wraps a normal http.Handler in a httpmock.Responder for ease of use.
# Structs
FastRouter creates a fasthttp router that is compatible with standard http.Handler's in golang.
HTTPFastHandler - turns client requests into methods locally handled by overriding dial for wrapping gock/other mock servers.