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

Method canReuseConnectionFor

Libraries/Http/HttpAsyncClient.cpp:237–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235bool HttpAsyncClient::canReuseConnectionFor(StringSpan protocol, StringSpan host, uint16_t port) const
236{
237 return hasOpenConnection and currentPort == port and currentProtocol == protocol and currentHost == host;
238}
239
240Result HttpAsyncClient::ensureConnected()
241{
242 if (not hasOpenConnection)
243 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected