* Move must and match packages out of internal; add generic must functions * add more useful must functions * Add typing helper functions * More general tidyup of ./tests * Prefer gjson.Result in more places as it is more expressive * Patch up mscs * Make ParseJSON and GetJSONFieldStr return/accept gjson not bytes * Remove unused function
14 lines
379 B
Go
14 lines
379 B
Go
package match
|
|
|
|
// HTTPResponse is the desired shape of the HTTP response. Can include any number of JSON matchers.
|
|
type HTTPResponse struct {
|
|
StatusCode int
|
|
Headers map[string]string
|
|
JSON []JSON
|
|
}
|
|
|
|
// HTTPRequest is the desired shape of the HTTP request. Can include any number of JSON matchers.
|
|
type HTTPRequest struct {
|
|
Headers map[string]string
|
|
JSON []JSON
|
|
}
|