当前位置:网站首页>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
边栏推荐
- 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
- Yygh-11-timing statistics
- [Jiudu OJ 07] folding basket
- About PHP startup, mongodb cannot find the specified module
- Summary of data sets in intrusion detection field
- H3C V7 switch configuration IRF
- Huawei BFD configuration specification
- H3C S5820V2_ Upgrade method after stacking IRF2 of 5830v2 switch
- [Jiudu OJ 08] simple search x
- (column 22) typical column questions of C language: delete the specified letters in the string.
猜你喜欢
【SQL server速成之路】——身份验证及建立和管理用户账户
- [email protected] raspberry pie"/>
[email protected] raspberry pie
Detailed explanation of BF and KMP
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
[experience] install Visio on win11
Hongliao Technology: how to quickly improve Tiktok store
Novice entry SCM must understand those things
关于 PHP 启动 MongoDb 找不到指定模块问题
实践分享:如何安全快速地从 Centos迁移到openEuler
Station B, Master Liu Er - back propagation
随机推荐
High quality coding tool clion
网站进行服务器迁移前应做好哪些准备?
H3C V7版本交换机配置IRF
Wib3.0 leapfrogging, in leapfrogging (ง • ̀_•́) ง
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
How Huawei routers configure static routes
HCIA复习
The difference and usage between continue and break
B站刘二大人-反向传播
Introduction to promql of # yyds dry goods inventory # Prometheus
公司視頻加速播放
[Jiudu OJ 07] folding basket
Classes and objects (I) detailed explanation of this pointer
Mysql database master-slave cluster construction
【SQL server速成之路】——身份验证及建立和管理用户账户
Implementation of linked list in address book management system
【SQL server速成之路】——身份驗證及建立和管理用戶賬戶
[C language syntax] the difference between typedef struct and struct
AUTOSAR从入门到精通番外篇(十)-嵌入式S19文件解析
Title 1093: character reverse order