MCPcopy Index your code
hub / github.com/SpectoLabs/hoverfly / parsePACFileResult

Function parsePACFileResult

core/http.go:115–125  ·  view source on GitHub ↗
(result string, tlsVerification bool)

Source from the content-addressed store, hash-verified

113}
114
115func parsePACFileResult(result string, tlsVerification bool) *http.Client {
116 for _, s := range strings.Split(result, ";") {
117 if s == "DIRECT" {
118 return GetDefaultHoverflyHTTPClient(tlsVerification, "")
119 }
120 if s[0:6] == "PROXY " {
121 return GetDefaultHoverflyHTTPClient(tlsVerification, s[6:])
122 }
123 }
124 return nil
125}

Callers 1

GetHttpClientFunction · 0.85

Calls 1

Tested by

no test coverage detected