netty5/codec-http
Dmitry Spikhalskiy 464ae9fb7a Expose CharSequence version of HttpUtil#getMimeType and HttpUtil#getCharset
Motivation:

It would be more flexible to make getCharset and getMimeType code usable not only for HttpMessage entity but just for any CharSequence. This will improve usability in general purpose code and will help to avoid multiple fetching of ContentType header from a message. It could be done in an external code once and CharSequence method versions could be applied.

Modification:
Expose HttpUtil#getMimeType, HttpUtil#getCharsetAsString, HttpUtil#getCharset versions which works with CharSequence. New methods are reused in the old ones which work with HttpMessage entity.

Result:

More flexible methods set with a good code reusing.
2017-05-03 14:14:39 -07:00
..
src Expose CharSequence version of HttpUtil#getMimeType and HttpUtil#getCharset 2017-05-03 14:14:39 -07:00
pom.xml [maven-release-plugin] prepare for next development iteration 2017-04-29 14:10:00 +02:00