Open
Description
Currently, we re-parse expected request Content-Type
header values into mime::Mime
s every time we service a request. It'd be more efficient if aws_smithy_http_server::protocol::content_type_header_classifier_smithy
took in directly a const
Mime
type.
Note that we already do this to check the Accept
header (against the Content-Type
of the response):
It's probably better if we decide on #2666 before tackling this issue, to avoid throwaway work.
Originally source of this issue is #3690 (comment).