Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEndpoint ¶
DeleteEndpoint is a HTTP mock endpoint to simulate a DELETE request that responds without data. The only valid path is "/delete".
func GetEndpoint ¶
GetEndpoint is a HTTP mock endpoint to simulate a GET request that responds with data. The only valid path is "/get".
func GetEndpointWithHeader ¶
GetEndpointWithHeader is a HTTP mock endpoint to simulate a GET request that await for "test-header" header in the request. The server will respond with a 404 status code if the incoming request do not contains the header. The only valid path is "/get".
func GetPingEndpoint ¶
GetPingEndpoint is a HTTP mock endpoint used for testing. The ping url is "/".
func PostEndpoint ¶
PostEndpoint is a HTTP mock endpoint to simulate a POST request that responds without data. The only valid path is "/post".
func PutEndpoint ¶
PutEndpoint is a HTTP mock endpoint to simulate a PUT request that responds without data. The only valid path is "/put".
Types ¶
This section is empty.