HTTP 协议
1 基本知识
- Http 协议支持的方法有哪些?
- 请简述 Http 请求的流程
2 web/http/restful
uri:
- url,是一个名词,它代表是一个资源,位于网络上,一个 url 对应一个唯一的资源
- urn
- http://localhost:8080/student.do?action=del&id=1
- http://localhost:8080/student.do?id=2
GET/POST/PUT/DELETE http://localhost:8080/sudent/1 [唯一资源] http://localhost:8080/sudent/2 http://localhost:8080/sudent/3434
http 重新挖掘一下呢,跟现在 接轨呢。
<form action="/pet" method="post"> <input name="body" /> </form>
六大约束:
- 统一接口
- 客户端服务器
- 无状态
- 缓存 HashMap<String, Object> , /stu/1
- 分层
- 按需 xml/json/kskdfjskdjf