GetHTTPInterface is an interface for making HTTP requests, that returns a response and error.
| 83 | |
| 84 | // GetHTTPInterface is an interface for making HTTP requests, that returns a response and error. |
| 85 | type GetHTTPInterface interface { |
| 86 | Do(req *http.Request) (*http.Response, error) |
| 87 | } |
| 88 | |
| 89 | // DoHTTPProbe checks if a GET request to the url succeeds. |
| 90 | // If the HTTP response code is successful (i.e. 400 > code >= 200), it returns Success. |
no outgoing calls
no test coverage detected
searching dependent graphs…