PageRenderTime 32ms CodeModel.GetById 8ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llmessage/llsdhttpserver.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 51 lines | 8 code | 4 blank | 39 comment | 0 complexity | f0c20077f87f9eba30b063f1720f374a MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llsdhttpserver.h
  3. * @brief Standard LLSD services
  4. *
  5. * $LicenseInfo:firstyear=2006&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, 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 LL_LLSDHTTPSERVER_H
  27. #define LL_LLSDHTTPSERVER_H
  28. /**
  29. * This module implements and defines common services that should be included
  30. * in all server URL trees. These services facilitate debugging and
  31. * introsepction.
  32. */
  33. class LLHTTPStandardServices
  34. {
  35. public:
  36. static void useServices();
  37. /**<
  38. Having a call to this function causes the following services to be
  39. registered:
  40. /web/echo -- echo input
  41. /web/hello -- return "hello"
  42. /web/server/api -- return a list of url paths on the server
  43. /web/server/api/<..path..>
  44. -- return description of the path
  45. */
  46. };
  47. #endif // LL_LLSDHTTPSERVER_H