Versions in this module Expand all Collapse all v0 v0.2.0 Oct 27, 2026 Changes in this version type Code + const CodeMock v0.1.4 Oct 25, 2026 Changes in this version type ErrorInfo + Suggestions []string + type Suggester interface + Suggestions func() []string type UsageError + Suggestions []string v0.1.3 Oct 10, 2026 v0.1.2 Oct 10, 2026 v0.1.1 Oct 10, 2026 v0.1.0 Oct 10, 2026 Changes in this version + const Base64 + const DefaultMaxBodyBytes + const DocsURL + const ExitAssert + const ExitOK + const ExitTransport + const ExitUsage + const Masked + var Catalogue = []Entry + var Version = "dev" + func ExitCode(err error) int + func HistoryKey(p *project.Project, req *httpfile.Request) string + func RedactExpr(expr string) string + type AuthConfigInfo struct + Error string + Files []string + Ignored []string + Name string + Spec string + UseIDToken bool + type Code string + const CodeAmbiguous + const CodeAuth + const CodeBodyFile + const CodeBuild + const CodeCancelled + const CodeConnect + const CodeData + const CodeDirective + const CodeEnvironment + const CodeFeatures + const CodeFile + const CodeFlag + const CodeImport + const CodeInvalidFile + const CodeMissingVariable + const CodeOther + const CodeProject + const CodeProtocol + const CodeProxy + const CodeRef + const CodeServer + const CodeSession + const CodeTLS + const CodeTLSConfig + const CodeTerminal + const CodeTimeout + const CodeTransport + const CodeUnknownRequest + func CodeOf(err error) Code + func (c Code) URL() string + type Description struct + Asserts []string + Auth string + AuthSource string + Body string + BodyFile string + Captures []string + Description string + Disabled bool + File string + HTTPVersion string + Headers map[string]string + ID string + Line int + Method string + Name string + Proxy *ProxyInfo + Ready bool + Refs []string + SaveTo string + Sleep string + Steps []string + TLS *TLSInfo + URL string + URLTemplate string + Variables []VarInfo + type Entry struct + About string + Code Code + Exit int + Hint string + Title string + func Lookup(c Code) (Entry, bool) + type ErrorInfo struct + Code Code + Exit int + Hint string + Message string + Title string + URL string + func Info(err error) *ErrorInfo + type FormPart struct + ContentType string + File string + Filename string + Name string + Size int + Value string + type Iteration struct + Index int + Row map[string]string + Total int + type Options struct + Asserts []httpfile.Assert + CACert string + Captures []httpfile.Capture + Cert string + CookieJar *session.Jar + Cookies bool + Env string + Insecure bool + KeepGoing bool + Key string + MaxBodyBytes int64 + NoHistory bool + NoProxy bool + NoRetry bool + NoSession bool + Output string + Proxy string + Redact bool + Retry string + Session *session.Store + Timeout time.Duration + Vars map[string]string + type Progress struct + Attempt int + Failure string + Max int + Req *httpfile.Request + type ProxyInfo struct + Error string + Off bool + Source string + URL string + func (p *ProxyInfo) Raw() *url.URL + func (p *ProxyInfo) String() string + type Resolved struct + Auth string + AuthSpec *auth.Spec + Body string + File string + HTTPVersion string + Headers []httpfile.Header + Line int + Method string + Name string + Parts []FormPart + Proxy *ProxyInfo + SecretHeaders map[string]bool + TLS *TLSInfo + URL string + func (r Resolved) BodyBytes() []byte + 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 + BodyEncoding string + BodyTruncated bool + DurationMs int64 + Headers map[string]string + Proto string + Size int + Status int + StatusText string + Timings *Timings + func (r *Response) DisplayHeaders(redact bool) map[string]string + type Result struct + Asserts []assert.Result + Attempts int + BodyLimit int + Captures map[string]string + Deps []*Result + DryRun bool + Error *ErrorInfo + Errors []string + Iteration *Iteration + OK bool + RecordKey string + Recorded bool + Redact bool + Request Resolved + Response *Response + SavedTo string + Skipped string + Unrecorded string + Warnings []string + func ParseResult(data []byte) (*Result, error) + func (r *Result) AuthNote() string + func (r *Result) DisplayRawBody() []byte + func (r *Result) Problem() string + func (r *Result) Raw() *selector.Response + func (r *Result) Req() *httpfile.Request + 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 + History *history.Store + Interactive bool + Jar *session.Jar + Now func() time.Time + OnResult func(*Result, error) + Opts Options + Progress func(Progress) + Project *project.Project + Session *session.Store + Stderr io.Writer + func New(p *project.Project, opts Options) (*Runner, error) + func (r *Runner) AuthConfig(name string) (AuthConfigInfo, bool) + func (r *Runner) AuthConfigs() []AuthConfigInfo + 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) DryRun(req *httpfile.Request) (*Result, error) + func (r *Runner) EnvVars() []VarInfo + func (r *Runner) MissingError(req *httpfile.Request, missing []string) error + func (r *Runner) ProjectFile(rel string) ([]byte, error) + func (r *Runner) ProxyInfo(rawURL string) *ProxyInfo + 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) + func (r *Runner) Target(target string) ([]*httpfile.Request, error) + type TLSInfo struct + CAFile string + CertFile string + Insecure bool + KeyFile string + func (t *TLSInfo) String() string + type Timings struct + ConnectMs int64 + DNSMs int64 + Reused bool + TLSMs int64 + TTFBMs int64 + TotalMs int64 + type TransportError struct + Code Code + Err error + func (e *TransportError) Error() string + func (e *TransportError) ErrorCode() Code + func (e *TransportError) Unwrap() error + type UsageError struct + Code Code + Msg string + func Usage(code Code, msg string) *UsageError + func Usagef(code Code, format string, args ...any) *UsageError + func (e *UsageError) Error() string + type VarInfo struct + CapturedBy string + Missing bool + Name string + RefRuns bool + Secret bool + Source string + Value string