prerequest

package
v0.37.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(req *restfile.Request, out Output) error

Apply mutates req with pre-request script output.

func Normalize

func Normalize(out *Output)

Types

type Input

type Input struct {
	Request   *restfile.Request
	Variables map[string]string
	Globals   map[string]vars.GlobalMutation
	BaseDir   string
	Context   context.Context
}

Input is the host state available to a pre-request script runner.

type Output

type Output struct {
	Headers   http.Header
	Query     map[string]string
	Body      *string
	URL       *string
	Method    *string
	Variables map[string]string
	Globals   map[string]vars.GlobalMutation
}

Output is the request mutation set produced by pre-request scripts.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL