Search code examples
javatomcatcatalina

What's the difference between MimeHeader and Header in tomcat request?


For example, I want to get the authorization header from the request. What's the difference between the following two calls except the return type?

import org.apache.catalina.connector.Request;
request.getCoyoteRequest().getMimeHeaders().getValue("Authorization");
request.getHeader("Authorization");

Thanks!


Solution

  • There is no difference between those two calls (except the return type).