This source file includes following definitions.
- GetNormalizedValue
- GetResponseCode
#include "net/url_request/url_request_throttler_header_adapter.h"
#include "net/http/http_response_headers.h"
namespace net {
URLRequestThrottlerHeaderAdapter::URLRequestThrottlerHeaderAdapter(
HttpResponseHeaders* headers)
: response_header_(headers) {
}
URLRequestThrottlerHeaderAdapter::~URLRequestThrottlerHeaderAdapter() {}
std::string URLRequestThrottlerHeaderAdapter::GetNormalizedValue(
const std::string& key) const {
std::string return_value;
response_header_->GetNormalizedHeader(key, &return_value);
return return_value;
}
int URLRequestThrottlerHeaderAdapter::GetResponseCode() const {
return response_header_->response_code();
}
}