简体   繁体   English

MimeHeader和tomcat请求中的Header有什么区别?

[英]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! 谢谢!

这两个调用之间没有区别(返回类型除外)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Tomcat的“URIEncoding”、Encoding Filter和request.setCharacterEncoding有什么区别 - What's the difference between “URIEncoding” of Tomcat, Encoding Filter and request.setCharacterEncoding Tomcat日志:%D和%F之间的区别是什么 - Tomcat log: what's the difference between %D and %F 请求的线程和程序的线程有什么区别? - What's difference between request's thread and program's thread? #{} $ {}和%{}之间有什么区别? - what's the difference between #{} ${} and %{}? 在Spring 3.0 GET请求中,@ PathVariable和@RequestParam之间的区别是什么 - In a Spring 3.0 GET request, what's the difference between a @PathVariable and a @RequestParam session.setAttribute和request.setAttribute之间有什么区别? - What's the difference between session.setAttribute and request.setAttribute? Tomcat,JBoss和Glassfish有什么区别? - What is the difference between Tomcat, JBoss and Glassfish? 请求标头中cookie和字符串之间的区别 - difference between cookie and string in request header 基于Tomcat JNDI和基于Spring / Hibernate DS的连接池之间有什么区别 - What's the difference between Tomcat JNDI based and Spring/Hibernate DS based connection pooling 在 eclipse 中运行的 tomcat 和在服务器上运行的 tomcat 有什么区别? - What is the difference between tomcat running inside eclipse and tomcat running on a server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM