当前位置:网站首页>Function of contenttype
Function of contenttype
2022-07-06 05:58:00 【The corner of fufu】
List of articles
One 、ContentType The role of
ContentType Decide how the browser handles the response body
Two 、 Different types of performance effects
Achieve different performance effects for the following programs
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String output = "<h1><a href='http://www.baidu.com'><span> Baidu </span></a></h1>";
response.setContentType("text/html;charset=utf-8");
response.getWriter().println(output);
1、text/html:html file
text/html
html file
Debug page
2、text/plain: Pure text
text/plain
Pure text
Debug page
3、text/xml:XML file
text/xml
XML file
Debug page
4、application/x-msdownload: Resources to download
application/x-msdownload
Download resources
Debug page
边栏推荐
- H3C防火墙RBM+VRRP 组网配置
- Practice sharing: how to safely and quickly migrate from CentOS to openeuler
- 养了只小猫咪
- What impact will frequent job hopping have on your career?
- Embedded interview questions (IV. common algorithms)
- [email protected] raspberry pie
- Hongliao Technology: Liu qiangdong's "heavy hand"
- H3C S5820V2_5830V2交换机IRF2堆叠后升级方法
- 网站进行服务器迁移前应做好哪些准备?
- 进程和线程
猜你喜欢
随机推荐
Analysis of grammar elements in turtle Library
Station B, Master Liu Er - dataset and data loading
[email protected] raspberry pie
Station B Liu Erden - linear regression and gradient descent
Garbage collector with serial, throughput priority and response time priority
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Report on the competition status and investment decision recommendations of Guangxi hospital industry in China from 2022 to 2028
(column 22) typical column questions of C language: delete the specified letters in the string.
B站刘二大人-多元逻辑回归 Lecture 7
How to use the container reflection method encapsulated by thinkphp5.1 in business code
C language learning notes (mind map)
【论文代码】SML部分代码阅读
Embedded interview questions (IV. common algorithms)
Mysql database master-slave cluster construction
Title 1093: character reverse order
【LeetCode】Day96-第一个唯一字符&赎金信&字母异位词
Redis6 cluster setup
C language bubble sort
公司視頻加速播放
Novice entry SCM must understand those things


















[email protected]树莓派"/>

