httpkit

package
v0.4.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCapability

func NewCapability(deps core.Deps) (core.Capability, error)

NewCapability adapts New to the Registry constructor signature.

Types

type Kit

type Kit struct {
	HTTP     core.HTTPDoer
	Evidence core.EvidenceSink
	IDs      core.IDGenerator
}

Kit exposes structured HTTP probing. It uses only the injected HTTPDoer, so scope/rate/audit gates cannot be bypassed.

func New

func New(deps core.Deps) *Kit

func (*Kit) Call

func (k *Kit) Call(ctx context.Context, call core.Call) (core.Result, error)

Call is the envelope shell: it runs the tool and normalizes the Result so every return path carries a valid Status, Meta.Tool and a clamped Summary.

func (*Kit) Execute

func (k *Kit) Execute(ctx context.Context, refs []core.TemplateRef, target core.Target, _ map[string]any) (core.Result, error)

Execute runs engine-neutral http templates against one target. Matchers are ANDed; a template with no matchers is treated as "request succeeded".

func (*Kit) Kind

func (k *Kit) Kind() string

Kind implements core.TemplateEngine for kind=http.

func (*Kit) Manifest

func (k *Kit) Manifest() core.Manifest

Jump to

Keyboard shortcuts

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