MCPcopy Create free account
hub / github.com/Azure/peerd / HTTPClientFor

Method HTTPClientFor

pkg/peernet/network.go:39–39  ·  view source on GitHub ↗

HTTPClientFor returns an HTTP client which authenticates the given peer. If pid is empty, the client should work for any peer.

(pid peer.ID)

Source from the content-addressed store, hash-verified

37 // HTTPClientFor returns an HTTP client which authenticates the given peer.
38 // If pid is empty, the client should work for any peer.
39 HTTPClientFor(pid peer.ID) *http.Client
40}
41
42type network struct {

Callers 3

TestHTTPClientForFunction · 0.65
doP2pMethod · 0.65
NewReaderFunction · 0.65

Implementers 1

networkpkg/peernet/network.go

Calls

no outgoing calls

Tested by 1

TestHTTPClientForFunction · 0.52