httprunner

package
v0.0.70 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateHTTPImpl

func ValidateHTTPImpl(impl *spec.HTTPToolImpl) error

Types

type HTTPOption

type HTTPOption func(*HTTPToolRunner)

HTTPOption - Functional options for HTTPToolRunner.

func WithHTTPExtraHeaders

func WithHTTPExtraHeaders(h map[string]string) HTTPOption

WithHTTPExtraHeaders injects/overrides request headers.

func WithHTTPSecrets

func WithHTTPSecrets(s map[string]string) HTTPOption

WithHTTPSecrets provides secrets used in templating (e.g., ${SECRET}).

func WithHTTPTimeoutMs

func WithHTTPTimeoutMs(ms int) HTTPOption

WithHTTPTimeoutMs sets an invocation timeout override (milliseconds).

type HTTPToolRunner

type HTTPToolRunner struct {
	// contains filtered or unexported fields
}

HTTPToolRunner executes an HTTPToolImpl. Safe for concurrent use.

func NewHTTPToolRunner

func NewHTTPToolRunner(impl spec.HTTPToolImpl, opts ...HTTPOption) (*HTTPToolRunner, error)

func (*HTTPToolRunner) Run

func (r *HTTPToolRunner) Run(
	ctx context.Context,
	inArgs json.RawMessage,
) (outputs []spec.ToolStoreOutputUnion, metaData map[string]any, err error)

Jump to

Keyboard shortcuts

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