51550041 design way to handle content type parameter in the api

Add MimeType class and Encoder dispatching.