MCPcopy Create free account
hub / github.com/SpectoLabs/hoverfly / unauthorizedError

Function unauthorizedError

core/proxy.go:187–193  ·  view source on GitHub ↗
(request *http.Request, realm, message string)

Source from the content-addressed store, hash-verified

185}
186
187func unauthorizedError(request *http.Request, realm, message string) *http.Response {
188 response := auth.BasicUnauthorized(request, realm)
189 response.Body = io.NopCloser(bytes.NewBuffer([]byte(message)))
190 response.ContentLength = int64(len(message))
191
192 return response
193}
194
195func proxyBasicAndBearer(proxy *goproxy.ProxyHttpServer, realm string, basicFunc func(user, passwd string) bool, bearerFunc func(token string) bool) {
196

Callers 1

proxyBasicAndBearerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected