MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / httpStatusCode

Method httpStatusCode

Libraries/Http/HttpWebSocket.cpp:356–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354namespace SC
355{
356int HttpWebSocketHandshakeResult::httpStatusCode() const
357{
358 switch (status)
359 {
360 case Status::Accepted: return 101;
361 case Status::BadRequest: return 400;
362 case Status::UnsupportedVersion: return 426;
363 }
364 return 400;
365}
366
367bool HttpWebSocketFrameHeaderView::isControlFrame() const
368{

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected