Comments (1)
HTTP 0.9 1.0 1.1 每个版本新增的特性
HTTP/0.9
- 单行指令, 请求报文由 GET 加上 URL 构成
- 只有 GET 方法
- 响应报文只包含数据
- 没有 HTTP 头部
- 只能传输 HTML ,无法传输其他类型的文件
- 没有响应状态码或错误代码,发生错误时,只能发送一个描述问题的 HTML 文件
HTTP/1.0
- 协议版本信息随每个请求发送,如
GET /index.html HTTP/1.0
- 新增了 HTTP 响应状态码
- 引入 HTTP 头的概念,协议变得灵活,更具扩展性
- 由于引入了 HTTP 头,可以使用
Content-Type
字段,用来传输其他类型的文件 - 长连接需要设置 keep-alive
HTTP/1.1
- 连接可以复用,减少 TCP 建立连接次数
- 增加管线化技术
- 支持响应分块
- 增加 cache-control ,etag 跟 if-none-match ,对缓存进行优化
- 引入内容协商机制,包括语言,编码,类型等,并允许客户端和服务器之间约定以最合适的内容进行交换
- Host 头能够使不同域名配置在同一个IP地址的服务器上
参考
from note.
Related Issues (20)
- ES6 Generator
- ES6 async await HOT 1
- JavaScript 模块化方案
- Webpack 打包结果分析 HOT 2
- 跨域
- 函数柯里化 HOT 1
- Webpack 中 Loaders 与 Plugins 的区别
- 浏览器缓存机制
- HTTP/2 与 HTTP/3 HOT 1
- HTTPS 工作原理 HOT 2
- XSS 与 CSRF
- JavaScript 网络请求的几种方式
- 判断两条线段是否相交
- Webpack 从读取配置文件到生成打包产物经历了哪些过程
- MySQL 判断 JSON 中的值为空
- JWT 概念
- NestJS 修改 POST 请求 body 大小限制 HOT 1
- NestJS 限流代码分析
- NestJS 中如何配置正向代理
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from note.