MCPcopy Index your code
hub / github.com/tailscale/tailscale / HTTPClient

Method HTTPClient

tsnet/tsnet.go:398–404  ·  view source on GitHub ↗

HTTPClient returns an HTTP client that is configured to connect over Tailscale. This is useful if you need to have your tsnet services connect to other devices on your tailnet.

()

Source from the content-addressed store, hash-verified

396// This is useful if you need to have your tsnet services connect to other devices on
397// your tailnet.
398func (s *Server) HTTPClient() *http.Client {
399 return &http.Client{
400 Transport: &http.Transport{
401 DialContext: s.Dial,
402 },
403 }
404}
405
406// LocalClient returns a LocalClient that speaks to s.
407//

Callers 5

ExampleServer_HTTPClientFunction · 0.95
mainFunction · 0.80
StartFunction · 0.80
TestConfigFunction · 0.80

Calls

no outgoing calls

Tested by 3

ExampleServer_HTTPClientFunction · 0.76
TestConfigFunction · 0.64