当前位置:网站首页>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
边栏推荐
- Introduction to promql of # yyds dry goods inventory # Prometheus
- H3C V7 switch configuration IRF
- H3C防火墙RBM+VRRP 组网配置
- Migrate Infones to stm32
- Station B, Master Liu Er - dataset and data loading
- What preparations should be made for website server migration?
- ArcGIS应用基础4 专题图的制作
- Some easy-to-use tools make your essay style more elegant
- Cognitive introspection
- Arrays and collections
猜你喜欢
- [email protected] raspberry pie"/>
[email protected] raspberry pie
Station B, Master Liu Er - back propagation
初识数据库
B站刘二大人-线性回归 Pytorch
Leetcode 701 insertion operation in binary search tree -- recursive method and iterative method
The difference and usage between continue and break
Construction of yolox based on paste framework
Analysis report on development trends and investment planning of China's methanol industry from 2022 to 2028
(column 22) typical column questions of C language: delete the specified letters in the string.
Report on the competition status and investment decision recommendations of Guangxi hospital industry in China from 2022 to 2028
随机推荐
SQLMAP使用教程(三)实战技巧二
【SQL server速成之路】——身份驗證及建立和管理用戶賬戶
Configuring OSPF GR features for Huawei devices
嵌入式面试题(一:进程与线程)
The difference and usage between continue and break
My 2021
Hongliao Technology: how to quickly improve Tiktok store
Auto. JS learning notes 17: basic listening events and UI simple click event operations
[Jiudu OJ 07] folding basket
Redis6 cluster setup
Clock in during winter vacation
通讯录管理系统链表实现
H3C S5820V2_5830V2交换机IRF2堆叠后升级方法
Auto.js学习笔记17:基础监听事件和UI简单的点击事件操作
How Huawei routers configure static routes
关于 PHP 启动 MongoDb 找不到指定模块问题
P2802 回家
Arrays and collections
Implementation of linked list in address book management system
Rustdesk builds its own remote desktop relay server