x / net / websocket获得* http.Request之类的cookie

时间:2019-07-12 12:56:06

标签: go websocket

我正试图像* http.Request(func numberOfSections(in collectionView: UICollectionView) -> Int { return 3 } func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { if section == 0 { return 1 } if section == 1 { return tableData.count } if section == 2 { return 1 } return 0 } )一样获取cookie,如何在不连接升级的情况下实现此目的(纯ws)

1 个答案:

答案 0 :(得分:0)

参考this commit,实际上您可以致电

ws.Request().Cookie("guid")