MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / requestRemotePort

Method requestRemotePort

internal/nodes/http_request.go:1369–1375  ·  view source on GitHub ↗

客户端端口

()

Source from the content-addressed store, hash-verified

1367
1368// 客户端端口
1369func (this *HTTPRequest) requestRemotePort() int {
1370 _, port, err := net.SplitHostPort(this.RawReq.RemoteAddr)
1371 if err == nil {
1372 return types.Int(port)
1373 }
1374 return 0
1375}
1376
1377// 获取的URI中的参数部分
1378func (this *HTTPRequest) requestQueryString() string {

Callers 3

FormatMethod · 0.95
logMethod · 0.95
handlePROXYProtocolMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected