1. HTTP 请求报文
POST /customer HTTP/1.1 #请求行
Host: localhost:8080 #请求头
User-Agent: Mozilla/5.0
Content-Type: application/json
Content-Length: 34
#请求体:json格式的数据
{
"name": "John Doe",
"age": 30
}
2. HTTP 响应报文
HTTP/1.1 200 OK #状态行
Content-Type: application/json #响应头
Content-Length: 34
{ #响应体
"message": "请求成功",
"data": {
"name": "John Doe",
"age": 30
}
}