MCPcopy Index your code
hub / github.com/SenseUnit/dumbproxy / getLocalAddr

Function getLocalAddr

handler/handler.go:299–304  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

297}
298
299func getLocalAddr(ctx context.Context) string {
300 if addr, ok := ctx.Value(http.LocalAddrContextKey).(net.Addr); ok {
301 return addr.String()
302 }
303 return "<request context is missing address>"
304}

Callers 1

ServeHTTPMethod · 0.85

Calls 2

ValueMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected