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

Method addVarMapping

internal/nodes/http_request.go:1197–1201  ·  view source on GitHub ↗

添加变量定义

(varMapping map[string]string)

Source from the content-addressed store, hash-verified

1195
1196// 添加变量定义
1197func (this *HTTPRequest) addVarMapping(varMapping map[string]string) {
1198 for k, v := range varMapping {
1199 this.varMapping[k] = v
1200 }
1201}
1202
1203// 获取请求的客户端地址
1204func (this *HTTPRequest) requestRemoteAddr(supportVar bool) string {

Callers 2

configureWebMethod · 0.95
doFastcgiMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected