(p []byte)
| 193 | } |
| 194 | |
| 195 | func (h *HTTPResponseReadWriteAcker) Write(p []byte) (int, error) { |
| 196 | n, err := h.w.Write(p) |
| 197 | if n > 0 { |
| 198 | h.f.Flush() |
| 199 | } |
| 200 | return n, err |
| 201 | } |
| 202 | |
| 203 | // AckConnection acks an HTTP connection by sending a switch protocols status code that enables the caller to |
| 204 | // upgrade to streams. |