package proxyserver
import "google.golang.org/grpc/internal/testutils/proxyserver"
Package proxyserver provides an implementation of a proxy server for testing purposes. The server supports only a single incoming connection at a time and is not concurrent. It handles only HTTP CONNECT requests; other HTTP methods are not supported.
Index ¶
Types ¶
type ProxyServer ¶
type ProxyServer struct { Addr string // Address of the proxy // contains filtered or unexported fields }
ProxyServer represents a test proxy server.
func New ¶
New initializes and starts a proxy server, registers a cleanup to stop it, and returns a ProxyServer.
Source Files ¶
proxyserver.go
- Version
- v1.71.1 (latest)
- Published
- Mar 28, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 9 hours ago –
Tools for package owners.