http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package http wraps an http.RoundTripper so outbound client calls are subject to chaos. Construct an engine, attach rules, then pass http.DefaultTransport (or any RoundTripper) and the engine to WrapTransport. The returned RoundTripper is safe to share across goroutines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapTransport

func WrapTransport(rt http.RoundTripper, eng *engine.Engine) http.RoundTripper

WrapTransport returns a RoundTripper that consults eng on every request. If eng is nil or has no rules, tha wrapper is a near-zero-cost passthrough.

Types

This section is empty.

Jump to

Keyboard shortcuts

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