class EE::Network::Http::AsyncRequest

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();
    Uint64 id() const;
    void cancel();
};

Inherited Members

public:
    // typedefs

    typedef void (*FuncType)(void *);

    // methods

    static UintPtr getCurrentThreadId();
    void launch();
    void wait();
    void terminate();
    Uint32 getId();