MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / WebDebugConnection

Method WebDebugConnection

Source/SysOSX/Debug/WebDebug.cpp:75–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75WebDebugConnection::WebDebugConnection(WebbyConnection * connection)
76: mConnection(connection)
77, mState(kUnresponded)
78, mBytesExpected(0)
79, mBytesWritten(0)
80{
81 if (const char * params = connection->request.query_params)
82 {
83 std::vector<ConstStringRef> args;
84 Split(params, '&', &args);
85
86 mQueryParams.reserve(args.size());
87 for (size_t i = 0; i < args.size(); ++i)
88 {
89 Param param;
90 SplitAt(args[i], '=', &param.Key, &param.Value);
91
92 mQueryParams.push_back(param);
93 }
94 }
95}
96
97const char * WebDebugConnection::GetQueryString() const
98{

Callers

nothing calls this directly

Calls 3

SplitFunction · 0.85
SplitAtFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected