llcorehttpoptions.cpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * @file llcorehttpoptions.cpp
  3. * @brief Implementation of the HTTPOptions class
  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. #include "linden_common.h"
  27. #include "llcorehttpoptions.h"
  28. #include "llcorehttpinternal.h"
  29. namespace LLCore
  30. {
  31. HttpOptions::HttpOptions()
  32. : mWantHeaders(false),
  33. mTracing(HTTP_TRACE_OFF),
  34. mTimeout(HTTP_REQUEST_TIMEOUT_DEFAULT),
  35. mTransferTimeout(HTTP_REQUEST_XFER_TIMEOUT_DEFAULT),
  36. mRetries(HTTP_RETRY_COUNT_DEFAULT),
  37. mUseRetryAfter(HTTP_USE_RETRY_AFTER_DEFAULT),
  38. mFollowRedirects(true),
  39. mVerifyPeer(false),
  40. mVerifyHost(false),
  41. mDNSCacheTimeout(-1L),
  42. mNoBody(false)
  43. {
  44. }
  45. } // End namespace LLCore