Match determines, if encoding should be done based on the ResponseMatcher.
(rw *responseWriter)
| 284 | |
| 285 | // Match determines, if encoding should be done based on the ResponseMatcher. |
| 286 | func (enc *Encode) Match(rw *responseWriter) bool { |
| 287 | return enc.Matcher.Match(rw.statusCode, rw.Header()) |
| 288 | } |
| 289 | |
| 290 | // FlushError is an alternative Flush returning an error. It delays the actual Flush of the underlying |
| 291 | // ResponseWriterWrapper until headers were written. |