Go to the source code of this file.
|
| POLYPHASE_API bool | WsParseUrl (const char *url, WsUrl &outUrl, std::string &outError) |
| |
| POLYPHASE_API std::string | WsBuildHandshakeRequest (const WsUrl &url, const std::vector< std::string > &protocols, const std::vector< std::pair< std::string, std::string > > &headers, std::string &outExpectedAccept) |
| |
| POLYPHASE_API WsHandshakeResult | WsParseHandshakeResponse (const uint8_t *data, uint32_t size, const std::string &expectedAccept, uint32_t &outConsumed, std::string &outSelectedProtocol, std::string &outError) |
| |
◆ WsHandshakeResult
| Enumerator |
|---|
| NeedMoreData | |
| Ok | |
| Failed | |
◆ WsBuildHandshakeRequest()
| POLYPHASE_API std::string WsBuildHandshakeRequest |
( |
const WsUrl & |
url, |
|
|
const std::vector< std::string > & |
protocols, |
|
|
const std::vector< std::pair< std::string, std::string > > & |
headers, |
|
|
std::string & |
outExpectedAccept |
|
) |
| |
◆ WsParseHandshakeResponse()
| POLYPHASE_API WsHandshakeResult WsParseHandshakeResponse |
( |
const uint8_t * |
data, |
|
|
uint32_t |
size, |
|
|
const std::string & |
expectedAccept, |
|
|
uint32_t & |
outConsumed, |
|
|
std::string & |
outSelectedProtocol, |
|
|
std::string & |
outError |
|
) |
| |
◆ WsParseUrl()
| POLYPHASE_API bool WsParseUrl |
( |
const char * |
url, |
|
|
WsUrl & |
outUrl, |
|
|
std::string & |
outError |
|
) |
| |