1 #ifndef SRC_REQ_WRAP_H_
2 #define SRC_REQ_WRAP_H_
4 #include "async-wrap.h"
12 class ReqWrap : public AsyncWrap {
14 inline ReqWrap(Environment* env,
15 v8::Local<v8::Object> object,
16 AsyncWrap::ProviderType provider);
17 inline ~ReqWrap() override;
18 inline void Dispatched(); // Call this after the req has been dispatched.
21 friend class Environment;
22 ListNode<ReqWrap> req_wrap_queue_;
25 T req_; // Must be last. TODO(bnoordhuis) Make private.
30 #endif // SRC_REQ_WRAP_H_