HttpRequest.pkg 755 B

1234567891011121314151617181920212223242526
  1. $#include "HttpRequest.h"
  2. enum HttpRequestState
  3. {
  4. HTTP_INITIALIZING,
  5. HTTP_ERROR,
  6. HTTP_OPEN,
  7. HTTP_CLOSED
  8. };
  9. class HttpRequest : public Deserializer
  10. {
  11. const String GetURL() const;
  12. const String GetVerb() const;
  13. String GetError() const;
  14. HttpRequestState GetState() const;
  15. unsigned GetAvailableSize() const;
  16. bool IsOpen() const;
  17. tolua_readonly tolua_property__get_set String URL;
  18. tolua_readonly tolua_property__get_set String verb;
  19. tolua_readonly tolua_property__get_set String error;
  20. tolua_readonly tolua_property__get_set HttpRequestState state;
  21. tolua_readonly tolua_property__get_set unsigned availableSize;
  22. tolua_readonly tolua_property__is_set bool open;
  23. };