MCPcopy Create free account
hub / github.com/SpartanJ/eepp / requestAsync

Method requestAsync

src/eepp/network/http.cpp:652–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652Uint64 Http::requestAsync( const Http::AsyncResponseCallback& cb, const URI& uri,
653 const Time& timeout, Request::Method method,
654 const Http::Request::ProgressCallback& progressCallback,
655 const Http::Request::FieldTable& headers, const std::string& body,
656 const bool& validateCertificate, const URI& proxy ) {
657 auto http = sGlobalHttpPool.get( uri, proxy );
658 Request request( uri.getPathAndQuery(), method, body, validateCertificate, validateCertificate,
659 true, true );
660 request.setProgressCallback( progressCallback );
661
662 for ( const auto& field : headers )
663 request.setField( field.first, field.second );
664
665 return http->sendAsyncRequest( cb, request, timeout );
666}
667
668Uint64 Http::getAsync( const Http::AsyncResponseCallback& cb, const URI& uri, const Time& timeout,
669 const Http::Request::ProgressCallback& progressCallback,

Callers

nothing calls this directly

Calls 5

getPathAndQueryMethod · 0.80
setProgressCallbackMethod · 0.80
setFieldMethod · 0.80
sendAsyncRequestMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected