# downsides of wrapping ResponseWriter

Jun 20, 2022

The issue is, that the wrapping type now hides all the optional interfaces, ResponseWriter supports (namely Flusher, Pusher, Hijacker and CloseNotifier.
Even if the embedded ResponseWriter implements them, the type statusRecorder won't; it will only have the methods that are explicitly declared for it, plus the ones from embedded interfaces, that are known at compile time.
Particularly, losing Flusher means losing the ability to write chunked responses which is The Weirdly Obscure Art of Streamed HTML