MCPcopy Create free account
hub / github.com/imroc/req / String

Method String

internal/socks/socks.go:94–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92func (a *Addr) Network() string { return "socks" }
93
94func (a *Addr) String() string {
95 if a == nil {
96 return "<nil>"
97 }
98 port := strconv.Itoa(a.Port)
99 if a.IP == nil {
100 return net.JoinHostPort(a.Name, port)
101 }
102 return net.JoinHostPort(a.IP.String(), port)
103}
104
105// A Conn represents a forward proxy connection.
106type Conn struct {

Callers 11

TestChunkFunction · 0.45
TestReplyFunction · 0.45
DialContextMethod · 0.45
DialWithConnMethod · 0.45
connectMethod · 0.45
TestDialFunction · 0.45
TestDumperSyncFunction · 0.45
TestDumperAsyncFunction · 0.45

Calls

no outgoing calls

Tested by 8

TestChunkFunction · 0.36
TestReplyFunction · 0.36
TestDialFunction · 0.36
TestDumperSyncFunction · 0.36
TestDumperAsyncFunction · 0.36