You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
在WebSocketObject中是这个描述:
headers: map {string: string}
自定义 HTTP 头,一个键值对,每个键表示一个 HTTP 头的名称,对应的值是字符串。默认值为空。
而在HttpObject中是这个描述:
headers: map{ string, [ string ]}
HTTP 头,一个键值对,每个键表示一个 HTTP 头的名称,对应的值是一个数组。(v4.39.0+)
这两者结构不同,给复用headers方面带来了一些困难.
能否将两者统一?(或者允许混用两个结构?)
Beta Was this translation helpful? Give feedback.
All reactions