()
| 1506 | } |
| 1507 | |
| 1508 | func (h *handler) disableResponseCompression() { |
| 1509 | switch r := h.response.(type) { |
| 1510 | case *EncodedResponseWriter: |
| 1511 | r.disableCompression() |
| 1512 | } |
| 1513 | } |
| 1514 | |
| 1515 | // Do not call from HTTP handlers. Use h.writeRawJSON/h.writeRawJSONStatus instead. |
| 1516 | // writeRawJSONWithoutClientVerification takes the given bytes and always writes the response as JSON, |
no test coverage detected