词汇汇总
CRLF 指的是换行和回车\r\n
教程
./your_program.sh #启动自己的服务
curl -v http://localhost:4221#开启另一个终端 测试
- HTTP response
An HTTP response is made up of three parts, each separated by a CRLF (\r\n):
Status line.
Zero or more headers, each ending with a CRLF.
Optional response body.
先来一个简单的,只包含状态行。
// Status line
HTTP/1.1 // HTTP version
200 // Status code
OK // Optional reas