当前位置:网站首页>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
边栏推荐
- wib3.0 跨越,在跨越(ง •̀_•́)ง
- The difference and usage between continue and break
- 网络协议模型
- About PHP startup, mongodb cannot find the specified module
- 实践分享:如何安全快速地从 Centos迁移到openEuler
- Network protocol model
- Hongliao Technology: Liu qiangdong's "heavy hand"
- Mysql database master-slave cluster construction
- 华为路由器如何配置静态路由
- Pay attention to the details of pytoch code, and it is easy to make mistakes
猜你喜欢

Grant Yu, build a web page you want from 0

Download, install and use NVM of node, and related use of node and NRM

Rustdesk builds its own remote desktop relay server

(5) Explanation of yolo-v3 core source code (3)

Construction of yolox based on paste framework
![[paper reading] nflowjs: synthetic negative data intensive anomaly detection based on robust learning](/img/9c/2753f68ecec3555aaca23800dada1e.png)
[paper reading] nflowjs: synthetic negative data intensive anomaly detection based on robust learning

Analysis of grammar elements in turtle Library

进程和线程

Memory and stack related concepts

Station B Liu Erden linear regression pytoch
随机推荐
[Thesis code] SML part code reading
Yunxiaoduo software internal test distribution test platform description document
B站刘二大人-数据集及数据加载 Lecture 8
H3C V7 switch configuration IRF
Novice entry SCM must understand those things
实践分享:如何安全快速地从 Centos迁移到openEuler
What impact will frequent job hopping have on your career?
ContentType的作用
Station B Liu Erden - linear regression and gradient descent
High quality coding tool clion
Investment strategy discussion and market scale prediction report of China's solid state high power amplifier industry from 2022 to 2028
Jushan database appears again in the gold fair to jointly build a new era of digital economy
Some easy-to-use tools make your essay style more elegant
Memory and stack related concepts
Go language -- language constants
養了只小猫咪
LAN communication process in the same network segment
Li Chuang EDA learning notes 12: common PCB board layout constraint principles
华为BFD的配置规范
(5) Explanation of yolo-v3 core source code (3)












