httpclientmock

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandsHistory = make([]*cmd.HTTPRequest, 0)

CommandsHistory records every dispatched cmd.HTTPRequest, so tests can assert on fields that are not part of the http.Request (e.g. BlockPrivateNetworkTargets).

View Source
var RequestsHistory = make([]*http.Request, 0)

Functions

func Reset added in v0.38.0

func Reset()

Reset clears the recorded request history. It runs on every Init (i.e. each bus.Init that includes this service); tests that assert on the history also call it directly so nothing can leak in from earlier tests.

Types

type Service

type Service struct{}

func (Service) Category

func (s Service) Category() string

func (Service) Enabled

func (s Service) Enabled() bool

func (Service) Init

func (s Service) Init()

func (Service) Name

func (s Service) Name() string

Jump to

Keyboard shortcuts

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