GetContentTypeRequested returns the request's trim-ed(without the charset and priority values) header value of "Content-Type".
()
| 1447 | // trim-ed(without the charset and priority values) |
| 1448 | // header value of "Content-Type". |
| 1449 | func (ctx *Context) GetContentTypeRequested() string { |
| 1450 | // could use mime.ParseMediaType too. |
| 1451 | return TrimHeaderValue(ctx.GetHeader(ContentTypeHeaderKey)) |
| 1452 | } |
| 1453 | |
| 1454 | // GetContentLength returns the request's |
| 1455 | // header value of "Content-Length". |
no test coverage detected