Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSupportedMethod ¶
IsSupportedMethod checks if the passed `check` string is a valid method. The function uses a static map containing the known/supported methods for validation.
func IsValidURL ¶
IsValidURL checks if the passed `check` string is a valid URI. This function uses the url.ParseRequestURI function for validation.
Types ¶
type Request ¶
type Request struct { Method string `json:"METHOD"` URL string `json:"URL"` Headers map[string]string `json:"HEADERS"` Payload map[string]string `json:"PAYLOAD"` Auth map[string]string `json:"AUTH"` Timestamp int64 Response *Response }
Request stores information about a request. If the request is executed/fired, the response result is added to the request.
Click to show internal directories.
Click to hide internal directories.