ServeHTTP handles the http request.
(w http.ResponseWriter, r *http.Request)
| 357 | |
| 358 | // ServeHTTP handles the http request. |
| 359 | func (eh *endpointHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 360 | apiEndpoint, apiRequest := getAPIContext(r) |
| 361 | if apiEndpoint == nil || apiRequest == nil { |
| 362 | http.NotFound(w, r) |
| 363 | return |
| 364 | } |
| 365 | |
| 366 | apiEndpoint.ServeHTTP(w, r) |
| 367 | } |
| 368 | |
| 369 | // ServeHTTP handles the http request. |
| 370 | func (e *Endpoint) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no test coverage detected