httprunner

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 []llmtoolsSpec.ToolOutputUnion, metaData map[string]any, err error)

Jump to

Keyboard shortcuts

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