(request *http.Request, realm, message string)
| 185 | } |
| 186 | |
| 187 | func 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 | |
| 195 | func proxyBasicAndBearer(proxy *goproxy.ProxyHttpServer, realm string, basicFunc func(user, passwd string) bool, bearerFunc func(token string) bool) { |
| 196 |
no outgoing calls
no test coverage detected