PageRenderTime 22ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/mordor/http/basic.h

http://github.com/mozy/mordor
C Header | 25 lines | 15 code | 8 blank | 2 comment | 0 complexity | d3d01c9a7891ef974005be1415cb961f MD5 | raw file
Possible License(s): BSD-3-Clause
  1. #ifndef __MORDOR_HTTP_BASIC_AUTH_H__
  2. #define __MORDOR_HTTP_BASIC_AUTH_H__
  3. // Copyright (c) 2009 - Mozy, Inc.
  4. #include <string>
  5. namespace Mordor {
  6. namespace HTTP {
  7. struct AuthParams;
  8. struct Request;
  9. namespace BasicAuth {
  10. void authorize(AuthParams &authorization, const std::string &username,
  11. const std::string &password);
  12. /// @deprecated
  13. void authorize(Request &nextRequest,
  14. const std::string &username, const std::string &password,
  15. bool proxy = false);
  16. }}}
  17. #endif