writeTextStatus writes the given bytes as a plaintext response. If status is nonzero, the header will be written with that status.
(status int, value []byte)
| 1587 | // writeTextStatus writes the given bytes as a plaintext response. |
| 1588 | // If status is nonzero, the header will be written with that status. |
| 1589 | func (h *handler) writeTextStatus(status int, value []byte) { |
| 1590 | h.writeWithMimetypeStatus(status, value, "text/plain") |
| 1591 | } |
| 1592 | |
| 1593 | func (h *handler) writeJavascript(js string) { |
| 1594 | h.writeWithMimetypeStatus(http.StatusOK, []byte(js), "application/javascript") |
no test coverage detected