Documentation
¶
Overview ¶
Package query evaluates queries (`status`, `header`, `jsonpath`, …) on the responses of an entry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// Responses is the redirect chain; the last one is the final response.
Responses []*exchange.Response
Env *template.Env
// NoJSONPathCoercion keeps a jsonpath result the list of matches,
// even for no match or a single one.
NoJSONPathCoercion bool
// contains filtered or unexported fields
}
Context evaluates the queries of one entry. It caches the parsed body, so it must not be shared between entries or goroutines.
func NewContext ¶
NewContext returns a context for the responses of an entry (at least one).
Click to show internal directories.
Click to hide internal directories.