Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Input ¶
type Input struct {
Request *restfile.Request
Variables map[string]string
Globals vars.Globals
BaseDir string
Context context.Context
Secrets *vars.Secrets
}
Input is the host state available to a pre-request script runner.
type Output ¶
type Output struct {
Headers http.Header
// Removals are tracked separately because headers declared in the file are
// not part of Headers and would otherwise survive the script.
HeaderDels map[string]struct{}
Query map[string]string
Body *string
URL *string
Method *string
// Variables contains script writes, normalized to one entry per name.
Variables vars.NameMap[string]
Globals vars.Globals
}
Output is the request mutation set produced by pre-request scripts.
Click to show internal directories.
Click to hide internal directories.