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

Method onError

Libraries/HttpClient/HttpClientAsync.h:237–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 }
236
237 virtual void onError(Result error) override
238 {
239 responseBodyStream.emitError(error);
240 if (requestBodyBuffersPool != nullptr)
241 {
242 requestBodySink.destroy();
243 }
244 resetRequestBodyState();
245 }
246
247 virtual Result pullRequestBody(Span<char> dest, size_t& bytesWritten, bool& endReached) override
248 {

Callers

nothing calls this directly

Calls 2

emitErrorMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected