Versions in this module Expand all Collapse all v0 v0.1.2 Sep 19, 2026 v0.1.1 Sep 19, 2026 Changes in this version + const DefaultMaxBodyBytes type Options + MaxBodyBytes int64 v0.1.0 Sep 17, 2026 Changes in this version + const ExitAssert + const ExitOK + const ExitTransport + const ExitUsage + const Masked + var Version = "dev" + func ExitCode(err error) int + func RedactExpr(expr string) string + type Description struct + Asserts []string + Auth string + AuthSource string + Body string + BodyFile string + Captures []string + Description string + File string + Headers map[string]string + ID string + Line int + Method string + Name string + Ready bool + Steps []string + URL string + URLTemplate string + Variables []VarInfo + type Options struct + Env string + Insecure bool + KeepGoing bool + NoSession bool + Redact bool + Session *session.Store + Timeout time.Duration + Vars map[string]string + type Resolved struct + Auth string + AuthSpec *auth.Spec + Body string + File string + Headers []httpfile.Header + Line int + Method string + Name string + SecretHeaders map[string]bool + URL string + func (r Resolved) DisplayBody(redact bool) string + func (r Resolved) DisplayHeaders(redact bool) []httpfile.Header + func (r Resolved) DisplayURL(redact bool) string + func (r Resolved) MarshalJSON() ([]byte, error) + type Response struct + Body any + DurationMs int64 + Headers map[string]string + Size int + Status int + StatusText string + func (r *Response) DisplayHeaders(redact bool) map[string]string + type Result struct + Asserts []assert.Result + Captures map[string]string + Errors []string + OK bool + Redact bool + Request Resolved + Response *Response + func (r *Result) DisplayRawBody() []byte + func (r *Result) Raw() *selector.Response + func (r Result) DisplayAsserts() []assert.Result + func (r Result) DisplayCaptures() map[string]string + func (r Result) DisplayResponse() *Response + func (r Result) MarshalJSON() ([]byte, error) + type Runner struct + Envs *env.Environments + Opts Options + Project *project.Project + Session *session.Store + Stderr io.Writer + func New(p *project.Project, opts Options) (*Runner, error) + func (r *Runner) AuthSource(req *httpfile.Request) (raw, source string) + func (r *Runner) Capture(name, value string) + func (r *Runner) Captured() map[string]string + func (r *Runner) Describe(req *httpfile.Request) *Description + func (r *Runner) EnvVars() []VarInfo + func (r *Runner) MissingError(req *httpfile.Request, missing []string) error + func (r *Runner) Render(s string) (string, error) + func (r *Runner) Resolve(req *httpfile.Request) (*Resolved, error) + func (r *Runner) Results() map[string]*Result + func (r *Runner) Run(ctx context.Context, req *httpfile.Request) (*Result, error) + func (r *Runner) RunAll(ctx context.Context, reqs []*httpfile.Request) ([]*Result, error) + func (r *Runner) SetResult(name string, res *Result) + func (r *Runner) SetVar(name, value string) + type TransportError struct + Err error + func (e *TransportError) Error() string + func (e *TransportError) Unwrap() error + type UsageError struct + Msg string + func (e *UsageError) Error() string + type VarInfo struct + CapturedBy string + Missing bool + Name string + Secret bool + Source string + Value string