complement/match/http.go
kegsay 9e57f77a6f
Move must and match packages out of internal; add generic must functions (#661)
* 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
2023-10-05 17:44:22 +01:00

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
}