/mordor/http/basic.h
C Header | 25 lines | 15 code | 8 blank | 2 comment | 0 complexity | d3d01c9a7891ef974005be1415cb961f MD5 | raw file
Possible License(s): BSD-3-Clause
- #ifndef __MORDOR_HTTP_BASIC_AUTH_H__
- #define __MORDOR_HTTP_BASIC_AUTH_H__
- // Copyright (c) 2009 - Mozy, Inc.
- #include <string>
- namespace Mordor {
- namespace HTTP {
- struct AuthParams;
- struct Request;
- namespace BasicAuth {
- void authorize(AuthParams &authorization, const std::string &username,
- const std::string &password);
- /// @deprecated
- void authorize(Request &nextRequest,
- const std::string &username, const std::string &password,
- bool proxy = false);
- }}}
- #endif