class EE::Network::Http::AsyncRequest¶
Overview¶
class AsyncRequest: public EE::System::Thread { public: // fields static std::atomic<Uint64> IdCounter; // construction AsyncRequest(Uint64 id, Http* http, const AsyncResponseCallback& cb, Http::Request request, Time timeout, bool fromLocalPool); AsyncRequest( Uint64 id, Http* http, const AsyncResponseCallback& cb, Http::Request request, IOStream& writeTo, Time timeout, bool fromLocalPool ); AsyncRequest( Uint64 id, Http* http, const AsyncResponseCallback& cb, Http::Request request, std::string writePath, Time timeout, bool fromLocalPool ); ~AsyncRequest(); // methods void run(); void execute(ConnectionLease* granted); Uint64 id() const; void cancel(bool resetCancelCallback = false); bool fromLocalPool() const; static AsyncRequest* current(); };
Inherited Members¶
public: // typedefs typedef void (*FuncType)(void *); // methods static UintPtr getCurrentThreadId(); void launch(); void wait(); void terminate(); Uint32 getId();
Detailed Documentation¶
Methods¶
void execute(ConnectionLease* granted)
Performs the request, using a connection the pool already granted, if any.