Returns the result of an attempt to guess the MIME type of the response. @param buf The content of the reply to send.
(final ChannelBuffer buf)
| 707 | * @param buf The content of the reply to send. |
| 708 | */ |
| 709 | private String guessMimeType(final ChannelBuffer buf) { |
| 710 | final String mimetype = guessMimeTypeFromUri(request().getUri()); |
| 711 | return mimetype == null ? guessMimeTypeFromContents(buf) : mimetype; |
| 712 | } |
| 713 | |
| 714 | /** |
| 715 | * Attempts to guess the MIME type by looking at the URI requested. |
no test coverage detected