httpdriver

package
v1.34.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package httpdriver provides a test double of the browser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, t *testing.T, config Config) *client

New returns a client to simulate browser access.

func Zero

func Zero(t *testing.T) *zeroClient

Zero returns a client which call is not expected.

Types

type Config added in v1.32.0

type Config struct {
	TLSConfig    *tls.Config
	BodyContains string
}

Jump to

Keyboard shortcuts

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