PageRenderTime 121ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 58ms 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
 1#ifndef __MORDOR_HTTP_BASIC_AUTH_H__
 2#define __MORDOR_HTTP_BASIC_AUTH_H__
 3// Copyright (c) 2009 - Mozy, Inc.
 4
 5#include <string>
 6
 7namespace Mordor {
 8namespace HTTP {
 9
10struct AuthParams;
11struct Request;
12
13namespace BasicAuth {
14
15void authorize(AuthParams &authorization, const std::string &username,
16    const std::string &password);
17
18/// @deprecated
19void authorize(Request &nextRequest,
20    const std::string &username, const std::string &password,
21    bool proxy = false);
22
23}}}
24
25#endif