MCPcopy Index your code
hub / github.com/celzero/firestack / NewTransport

Function NewTransport

intra/doh/doh.go:120–122  ·  view source on GitHub ↗

NewTransport returns a POST-only DoH transport. `id` identifies this transport. `rawurl` is the DoH template in string form. `addrs` is a list of IP addresses to bootstrap dialers. `px` is the proxy provider, may be nil (eg for id == dnsx.Default)

(ctx context.Context, id, rawurl string, addrs []string, px ipn.ProxyProvider)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 14

AddDoHTransportFunction · 0.92
TestSEProxyFunction · 0.92
TestDohFunction · 0.70
TestNewTransportFunction · 0.70
TestBadUrlFunction · 0.70
TestShortQueryFunction · 0.70
TestQueryIntegrationFunction · 0.70
TestRequestFunction · 0.70
TestResponseFunction · 0.70
TestEmptyResponseFunction · 0.70
TestHTTPErrorFunction · 0.70

Calls 1

newTransportFunction · 0.70

Tested by 12

TestSEProxyFunction · 0.74
TestDohFunction · 0.56
TestNewTransportFunction · 0.56
TestBadUrlFunction · 0.56
TestShortQueryFunction · 0.56
TestQueryIntegrationFunction · 0.56
TestRequestFunction · 0.56
TestResponseFunction · 0.56
TestEmptyResponseFunction · 0.56
TestHTTPErrorFunction · 0.56
TestSendFailedFunction · 0.56
TestListenerFunction · 0.56