()
| 48 | } |
| 49 | |
| 50 | func (h *timeoutHandler) errorBody() string { |
| 51 | if h.body != "" { |
| 52 | return h.body |
| 53 | } |
| 54 | return "<html><head><title>Timeout</title></head><body><h1>Timeout</h1></body></html>" |
| 55 | } |
| 56 | |
| 57 | func (h *timeoutHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 58 | var t *time.Timer |