httpclienttest

package
v0.22.0 Latest Latest
Warning

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

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

Documentation

Overview

Package httpclienttest builds httpclient.Client values for tests against an httptest TLS server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(tb testing.TB, srv *httptest.Server, cfg httpclient.Config) *httpclient.Client

NewClient returns a client built from cfg that trusts and allows the TLS server srv only, with one attempt per call.

Types

This section is empty.

Jump to

Keyboard shortcuts

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