标签:web err 服务 部分 mat 验证 http 错误 server
切换WebSocket时,响应状态码,eg:
"request": {
"bodySize": 0,
"method": "GET",
"url": "WebSocket URL",
"httpVersion": "HTTP/1.1",
"headers": [
...,
{
"name": "Upgrade",
"value": "websocket"
},
{
"name": "Sec-WebSocket-Version",
"value": "13"
},
{
"name": "Sec-WebSocket-Extensions",
"value": "permessage-deflate"
},
{
"name": "Sec-WebSocket-Key",
"value": "wpvl/9Lq/I1OVCq29ng0aw=="
},
{
"name": "Connection",
"value": "keep-alive, Upgrade"
}
],
"cookies": [],
"queryString": [],
"headersSize": 567
},
"response": {
"status": 101,
"statusText": "Switching Protocols",
"httpVersion": "HTTP/1.1",
"headers": [
{
"name": "Upgrade",
"value": "websocket"
},
{
"name": "Connection",
"value": "Upgrade"
},
{
"name": "Sec-WebSocket-Accept",
"value": "yJPzwR/pNqLYZDkRObIeX4opAY4="
}
],
...
},
当向服务器请求“浏览器已经缓存但过期的文件”时(参见xxx),如果返回304则继续使用该文件。
用于身份验证,请求头中要包含Authorization
进行验证,验证失败返回401和诊断信息
参考:
HTTP/1.1: Status Code Definitions
标签:web err 服务 部分 mat 验证 http 错误 server
原文地址:https://www.cnblogs.com/jffun-blog/p/10012677.html