Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPFake ¶
type HTTPFake struct {
// contains filtered or unexported fields
}
HTTPFake is the workhorse used to add, delete routes and to start a fake server
func (*HTTPFake) AddRoute ¶
func (h *HTTPFake) AddRoute(route string, method string, requestParams map[string]string, returnStatus int, returnBody string, returnHeaders map[string]string) bool
AddRoute is using to add a new route
type RequestResponse ¶
type RequestResponse struct {
// contains filtered or unexported fields
}
RequestResponse is the structure where routes are saving
Click to show internal directories.
Click to hide internal directories.