llcorehttpopcancel.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * @file llcorehttpopcancel.h
  3. * @brief Internal declarations for the HttpOpCancel subclass
  4. *
  5. * $LicenseInfo:firstyear=2012&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2012, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef _LLCORE_HTTP_OPCANCEL_H_
  27. #define _LLCORE_HTTP_OPCANCEL_H_
  28. #include "llcorehttpcommon.h"
  29. #include "llcorehttpoperation.h"
  30. namespace LLCore
  31. {
  32. // HttpOpCancel requests that a previously issued request be cancelled, if
  33. // possible. This includes active requests that may be in the middle of an
  34. // HTTP transaction. Any completed request will not be cancelled and will
  35. // return its final status unchanged and *this* request will complete with an
  36. // HE_HANDLE_NOT_FOUND error status.
  37. class HttpOpCancel final : public HttpOperation
  38. {
  39. public:
  40. // @param handle Handle of previously-issued request to be cancelled.
  41. HttpOpCancel(HttpHandle handle);
  42. public:
  43. void stageFromRequest(HttpService*) override;
  44. public:
  45. HttpHandle mHandle;
  46. };
  47. } // End namespace LLCore
  48. #endif // _LLCORE_HTTP_OPCANCEL_H_