#ifndef NET_HTTP_HTTP_AUTH_CHALLENGE_TOKENIZER_H_
#define NET_HTTP_HTTP_AUTH_CHALLENGE_TOKENIZER_H_
#include <string>
#include <string_view>
#include "net/base/net_export.h"
#include "net/http/http_util.h"
namespace net {
class NET_EXPORT_PRIVATE HttpAuthChallengeTokenizer {
public:
explicit HttpAuthChallengeTokenizer(std::string_view challenge);
~HttpAuthChallengeTokenizer();
std::string_view challenge_text() const { return challenge_; }
const std::string& auth_scheme() const { return lower_case_scheme_; }
std::string_view params() const { return params_; }
HttpUtil::NameValuePairsIterator param_pairs() const;
std::string_view base64_param() const;
private:
void Init(std::string_view challenge);
std::string_view challenge_;
std::string_view params_;
std::string lower_case_scheme_;
};
}
#endif