File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ HTTP协议工作于客户端-服务端架构为上。浏览器作为HTTP客户
3939
4040### HTTP的URL(UniformResourceLocator)
4141URL格式:
42- > http://host[:port ] [ abs_path ]
42+ ```
43+ http://host[:port][abs_path]
44+ ```
4345
4446` http ` 表示要通过HTTP协议来定位网络资源。
4547` host ` 表示合法的Internet主机域名或IP地址(以点分十进制格式表示)。
5254 ![ HTTP 消息格式] ( https://cdn.jsdelivr.net/gh/niumoo/cdn-assets/2019/ae3fe2acba5a78462d247d03cccaa3ec.jpg )
5355
5456先来看下HTTP的请求消息头:
57+ ```
5558 - Accept: text/html,image/* 【浏览器告诉服务器,它支持的数据类型】
5659 - Accept-Charset: ISO-8859-1 【浏览器告诉服务器,它支持哪种字符集】
5760 - Accept-Encoding: gzip,compress 【浏览器告诉服务器,它支持的压缩格式】
6366 - Cookie【浏览器告诉服务器,带来的Cookie是什么】
6467 - Connection: close/Keep-Alive 【浏览器告诉服务器,请求完后是断开链接还是保持链接】
6568 - Date: Tue, 11 Jul 2000 18:23:51 GMT【浏览器告诉服务器,请求的时间
66-
69+ ```
6770使用Chrome请求网址进行观察:
6871 ![ ] ( https://cdn.jsdelivr.net/gh/niumoo/cdn-assets/2019/6e442fc98cc8988ef631f7103f213b0b.jpg )
6972Chrome请求信息
Original file line number Diff line number Diff line change 11---
2- title : [ 源码分析] ArrayList和LinkedList如何实现的?我看你还有机会!
2+ title : 「 源码分析」 ArrayList和LinkedList如何实现的?我看你还有机会!
33date : 2020-08-12 08:01:01
44url : jdk/src-arraylist-linkedlist
55tags :
Original file line number Diff line number Diff line change 11---
22title : 还不懂 ConcurrentHashMap ?这份源码分析了解一下
33date : 2020-04-07 08:01:01
4- url : jdk/concurrent_hashmap
4+ url : jdk/concurrent-hashmap
55tags :
66 - HashMap
7- - ConcurrentHashMap
7+ - ConcruuentHashMap
88categories :
99 - Java 源码分析
1010---
You can’t perform that action at this time.
0 commit comments