SetContentTypeBytes sets response Content-Type. It is safe modifying contentType buffer after function return.
(contentType []byte)
| 1029 | // |
| 1030 | // It is safe modifying contentType buffer after function return. |
| 1031 | func (ctx *RequestCtx) SetContentTypeBytes(contentType []byte) { |
| 1032 | ctx.Response.Header.SetContentTypeBytes(contentType) |
| 1033 | } |
| 1034 | |
| 1035 | // RequestURI returns RequestURI. |
| 1036 | // |