这个接口返回的是什么格式
查一个响应头,确认对面给的是什么格式:
Content-Type 的值是什么?(分号前面那一段就够)
$ curl -sI http://localhost:8080/api/user.json | grep -i '^content-type'
Content-Type: application/json
查一个响应头,确认对面给的是什么格式:
Content-Type 的值是什么?(分号前面那一段就够)
$ curl -sI http://localhost:8080/api/user.json | grep -i '^content-type'
Content-Type: application/json
全部评论