package httptest
import "github.com/google/go-containerregistry/internal/httptest"
Package httptest provides a method for testing a TLS server a la net/http/httptest.
Index ¶
Functions ¶
func NewTLSServer ¶
NewTLSServer returns an httptest server, with an http client that has been configured to send all requests to the returned server. The TLS certs are generated for the given domain. If you need a transport, Client().Transport is correctly configured.
Source Files ¶
- Version
- v0.20.3 (latest)
- Published
- Jan 15, 2025
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 21 hours ago –
Tools for package owners.