34

别人问你http协议,到底是想问什么?(二)<br/>http与缓存 | zou hangoo

 6 years ago
source link: https://zouhangwithsweet.github.io/2018/03/19/http2.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
上一篇文章我们讨论了TCP三次握手,http请求头、响应头,Content-Type字段,如何使用node控制这个字段等。我这篇文章将从http状态码入手,讨论写常用的http方法和控制缓存。   我们调试一个接口时,喜欢的数字就是 200,或者说,除了这个数字,别的我们都不喜欢。比如404,401,403,500。状态码的文章数不胜数,本质也是一个关于记忆力的东西。我简单列个常用状态码表即可

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK