ResponseWriter ...
| 21 | |
| 22 | // ResponseWriter ... |
| 23 | type ResponseWriter interface { |
| 24 | http.ResponseWriter |
| 25 | http.Hijacker |
| 26 | http.Flusher |
| 27 | http.CloseNotifier |
| 28 | |
| 29 | // Status returns the HTTP response status code of the current request. |
| 30 | Status() int |
| 31 | |
| 32 | // Size returns the number of bytes already written into the response http body. |
| 33 | // See Written() |
| 34 | Size() int |
| 35 | |
| 36 | // WriteString writes the string into the response body. |
| 37 | WriteString(string) (int, error) |
| 38 | |
| 39 | // Written returns true if the response body was already written. |
| 40 | Written() bool |
| 41 | |
| 42 | // WriteHeaderNow forces to write the http header (status code + headers). |
| 43 | WriteHeaderNow() |
| 44 | |
| 45 | // Pusher get the http.Pusher for server push |
| 46 | Pusher() http.Pusher |
| 47 | } |
| 48 | |
| 49 | type responseWriter struct { |
| 50 | http.ResponseWriter |
no outgoing calls
no test coverage detected