(p []byte)
| 301 | } |
| 302 | |
| 303 | func (hrw *httpResponseAdapter) Write(p []byte) (int, error) { |
| 304 | // Make sure to send WriteHeader response if not called yet |
| 305 | if !hrw.connectResponseSent { |
| 306 | _ = hrw.WriteRespHeaders(http.StatusOK, hrw.headers) |
| 307 | } |
| 308 | return hrw.RequestServerStream.Write(p) |
| 309 | } |
| 310 | |
| 311 | func (hrw *httpResponseAdapter) Header() http.Header { |
| 312 | return hrw.headers |
nothing calls this directly
no test coverage detected