Versions in this module Expand all Collapse all v1 v1.7.0 Nov 18, 2026 v1.6.0 Nov 16, 2026 Changes in this version + const DefaultTimeout + const Lang + const Masked + const MaxBody + var Methods = []string + var Ops = []string + var SecretHeaders = []string + var Whats = []string + func Body(resp *Response, raw bool) string + func CheckPath(s string) error + func Curl(r *Request) string + func Format(resp *Response, more []string, raw bool) string + func Headers(resp *Response, more []string) string + func IsJSON(mt string) bool + func IsSecretHeader(name string, more []string) bool + func MaskValue(text, v string) string + func Split(text string) (status, headers, body string, ok bool) + type Assert struct + Not bool + Op string + Text string + Value string + func ParseAssert(line string) (Assert, error) + type Capture struct + Name string + Secret bool + type Check struct + Got string + OK bool + Text string + type Config struct + ReadFile func(name string) ([]byte, error) + SecretHeaders []string + Timeout time.Duration + Transport http.RoundTripper + type Error struct + Line int + Msg string + func (e *Error) Error() string + type Pair struct + Name string + Value string + type Query struct + Arg string + Count bool + What string + func (q Query) String() string + type Request struct + Asserts []Assert + Body string + BodyFile string + Captures []Capture + Follow bool + Form []Pair + Headers []Pair + Insecure bool + Method string + Query []Pair + Status int + StatusLine string + Timeout time.Duration + URL string + func Parse(src string) (*Request, error) + func (r *Request) Expand(fill func(string) (string, error)) (*Request, error) + type Response struct + Body []byte + CaptureErrs []string + Checks []Check + Code int + Duration time.Duration + Header http.Header + Proto string + Secret []string + Status string + Truncated bool + Vars map[string]string + func Do(ctx context.Context, r *Request, cfg Config) (*Response, error) + func (r *Response) Failed() bool + func (r *Response) Failures() []string + func (resp *Response) Lookup(fn, arg string) (value string, ok bool)