net/http/httptest.Server.URL (field)
8 uses
net/http/httptest (current package)
server.go#L27: URL string // base URL of form http://ipaddr:port with no trailing slash
server.go#L124: if s.URL != "" {
server.go#L130: s.URL = "http://" + s.Listener.Addr().String()
server.go#L134: fmt.Fprintln(os.Stderr, "httptest: serving on", s.URL)
server.go#L141: if s.URL != "" {
server.go#L181: s.URL = "https://" + s.Listener.Addr().String()
golang.org/x/pkgsite/internal/index
test_helper.go#L39: client, err := New(server.URL)
golang.org/x/pkgsite/internal/proxy
test_helper.go#L38: client, err := New(proxy.URL)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |