Versions in this module Expand all Collapse all v1 v1.5.0 Oct 8, 2026 Changes in this version type HTTPOptions + NoHeaders []string + ProxyHeaders []string type HTTPVersion + const HTTP2PriorKnowledge type Options + FailWithBody bool + NoJSONPathCoercion bool + StdoutBody func(resp *exchange.Response, body []byte) []byte type UnitResult + func (u *UnitResult) Decisive(i int) bool v1.4.1 Oct 5, 2026 v1.4.0 Oct 5, 2026 v1.3.1 Sep 28, 2026 v1.3.0 Sep 28, 2026 v1.2.0 Sep 28, 2026 Changes in this version type CurlEntry + Skipped string type ErrorKind + const ErrorGRPC + const ErrorStream + type MessageReceived struct + Index int + Message exchange.Message + type MessageSent struct + Index int + Message exchange.Message v1.0.0 Sep 27, 2026 Changes in this version + type Assert struct + Err *Error + Line int + type Call struct + Request exchange.Request + Response *exchange.Response + Timings exchange.Timings + type Capture struct + Name string + Value Value + type ContractEvaluated struct + Index int + Violations []Violation + type Cookie struct + Domain string + Expires int64 + HTTPOnly bool + HTTPS bool + IncludeSubdomain bool + Name string + Path string + Value string + func (c Cookie) Netscape() string + type CurlEntry struct + Command string + Err error + Index int + Undefined []string + type EntryFinished struct + Result *EntryResult + type EntryResult struct + Asserts []Assert + Calls []Call + Captures []Capture + Compressed bool + Curl string + Errors []*Error + Index int + Line int + Retried bool + TransferDuration time.Duration + Violations []Violation + type EntryStarted struct + Index int + Last int + Retry int + type Error struct + func (e *Error) Actual() string + func (e *Error) Assert() bool + func (e *Error) Description() string + func (e *Error) Error() string + func (e *Error) Expected() string + func (e *Error) Kind() ErrorKind + func (e *Error) Message() string + func (e *Error) Render() string + func (e *Error) RenderColor() string + func (e *Error) Span() Span + type ErrorKind string + const ErrorAssertBodyDiff + const ErrorAssertBodyValue + const ErrorAssertFailure + const ErrorAssertHeaderValue + const ErrorAssertStatus + const ErrorAssertVersion + const ErrorBinaryOutput + const ErrorContractViolation + const ErrorExpressionInvalidType + const ErrorFileReadAccess + const ErrorFileWriteAccess + const ErrorFilterDateParsing + const ErrorFilterDecode + const ErrorFilterInvalidEncoding + const ErrorFilterInvalidFormatSpecifier + const ErrorFilterInvalidInputType + const ErrorFilterInvalidInputValue + const ErrorFilterMissingInput + const ErrorHTTP + const ErrorInvalidJSON + const ErrorInvalidOptionValue + const ErrorInvalidRegex + const ErrorInvalidURL + const ErrorInvalidXPathEval + const ErrorNoFilterResult + const ErrorNoQueryResult + const ErrorParse + const ErrorPossibleLoggedSecret + const ErrorQueryHeaderNotFound + const ErrorQueryInvalidJSON + const ErrorQueryInvalidJSONPath + const ErrorQueryInvalidXML + const ErrorUnauthorizedFileAccess + const ErrorUndefinedVariable + const ErrorUnrenderable + const ErrorUnsupportedSecretType + type Event interface + type Field struct + Key string + Value Value + type HTTPOptions struct + AWSSigV4 string + CACert string + ClientCert string + ClientKey string + Compressed bool + ConnectTimeout time.Duration + ConnectTo []string + Digest bool + FollowLocation bool + HTTPVersion HTTPVersion + Headers []string + IPResolve IPResolve + Insecure bool + LimitRate int64 + LocationTrusted bool + MaxFilesize int64 + MaxRedirects int + NTLM bool + Negotiate bool + Netrc bool + NetrcAllowReroute bool + NetrcFile string + NetrcOptional bool + NoProxy string + PathAsIs bool + PinnedPublicKey string + Proxy string + Resolve []string + Timeout time.Duration + UnixSocket string + User string + UserAgent string + type HTTPVersion int + const HTTP10 + const HTTP11 + const HTTP2 + const HTTP3 + const HTTPDefault + type IPResolve int + const IPAny + const IPv4 + const IPv6 + type Job struct + Name string + Row *Row + Secrets map[string]string + Source []byte + Validator ResponseValidator + Variables map[string]any + func (j Job) Label() string + type Log struct + Color string + Level LogLevel + Text string + type LogLevel int + const LogCapture + const LogDebug + const LogDebugError + const LogDebugImportant + const LogError + const LogRequest + const LogRequestLine + const LogResponse + const LogResponseLine + const LogWarning + type Options struct + BufferedLogs bool + ContinueOnError bool + CookieFile string + DefaultUserAgent string + Delay time.Duration + FileRoot string + FromEntry int + HTTP HTTPOptions + NoAssert bool + NoCookieStore bool + Now func() time.Time + OnEvent func(Event) + Retry int + RetryInterval time.Duration + Secrets map[string]string + Stdout io.Writer + ToEntry int + UUID func() string + Validator ResponseValidator + Variables map[string]any + Verbosity Verbosity + type Pos struct + Col int + Line int + Offset int + type Redirect struct + HasLocation bool + Location string + Status int + type ResponseValidator interface + ValidateResponse func(ctx context.Context, req *exchange.Request, resp *exchange.Response) []Violation + func NoContract() ResponseValidator + type Row struct + Index int + Secrets map[string]string + Variables map[string]any + type RunAllOptions struct + Finished func(seq int, job Job, res *UnitResult, err error) bool + Parallel int + Started func(seq int, job Job) (onEvent func(Event), stdout io.Writer) + Stop <-chan struct{} + type Runner struct + func NewRunner(opt Options) *Runner + func (r *Runner) Close() error + func (r *Runner) HasSecrets() bool + func (r *Runner) Redact(s string) string + func (r *Runner) RenderCurl(ctx context.Context, name string, src []byte) ([]CurlEntry, error) + func (r *Runner) RunAll(ctx context.Context, jobs iter.Seq[Job], opt RunAllOptions) + func (r *Runner) RunFile(ctx context.Context, path string) (*UnitResult, error) + func (r *Runner) RunSource(ctx context.Context, name string, src []byte) (*UnitResult, error) + type Span struct + End Pos + Start Pos + type UnitResult struct + Cookies []Cookie + Duration time.Duration + Entries []*EntryResult + File string + Interrupted bool + ParseError *Error + Row int + Source []byte + Success bool + Timestamp time.Time + func (u *UnitResult) Errors() []*Error + func (u *UnitResult) HasSecrets() bool + func (u *UnitResult) Label() string + func (u *UnitResult) Redact(s string) string + type Value struct + func (v Value) Bool() (b, ok bool) + func (v Value) Bytes() ([]byte, bool) + func (v Value) Fields() []Field + func (v Value) Float() (float64, bool) + func (v Value) Get(key string) (Value, bool) + func (v Value) Int() (int64, bool) + func (v Value) Kind() ValueKind + func (v Value) Len() int + func (v Value) List() []Value + func (v Value) Redirect() (Redirect, bool) + func (v Value) Regex() (string, bool) + func (v Value) String() string + func (v Value) Text() (string, bool) + func (v Value) Time() (time.Time, bool) + type ValueKind string + const ValueBool + const ValueBytes + const ValueDate + const ValueFloat + const ValueInteger + const ValueList + const ValueNodeset + const ValueNull + const ValueObject + const ValueRedirect + const ValueRegex + const ValueString + const ValueUnit + type Verbosity int + const Brief + const Quiet + const Verbose + const VeryVerbose + type Violation struct + InstancePath string + Kind ViolationKind + Message string + Operation string + SpecPointer string + Warning bool + type ViolationKind string + const ViolationBody + const ViolationContentType + const ViolationError + const ViolationHeader + const ViolationStatus + const ViolationUnmatched v1.0.0-rc.2 Sep 27, 2026 v1.0.0-rc.1 Sep 27, 2026