Lines Matching refs:raw_headers_
169 pickle->WriteString(raw_headers_);
195 blob.reserve(raw_headers_.size());
198 // Note raw_headers_ has embedded nulls instead of \n,
200 blob.assign(raw_headers_.c_str(), strlen(raw_headers_.c_str()) + 1);
231 std::string new_raw_headers(raw_headers_.c_str());
294 raw_headers_.clear();
301 std::string new_raw_headers(raw_headers_.c_str());
319 new_raw_headers.reserve(raw_headers_.size());
341 raw_headers_.clear();
348 DCHECK_EQ('\0', raw_headers_[raw_headers_.size() - 2]);
349 DCHECK_EQ('\0', raw_headers_[raw_headers_.size() - 1]);
351 std::string new_raw_headers(raw_headers_, 0, raw_headers_.size() - 1);
357 raw_headers_.clear();
399 raw_headers_.reserve(raw_input.size());
401 // ParseStatusLine adds a normalized status line to raw_headers_
411 raw_headers_.push_back('\0'); // Terminate status line with a null.
414 raw_headers_.push_back('\0'); // Ensure the headers end with a double null.
416 DCHECK_EQ('\0', raw_headers_[raw_headers_.size() - 2]);
417 DCHECK_EQ('\0', raw_headers_[raw_headers_.size() - 1]);
422 size_t status_line_len = raw_headers_.size();
424 // Now, we add the rest of the raw headers to raw_headers_, and begin parsing
426 raw_headers_.append(line_end + 1, raw_input.end());
429 while (raw_headers_.size() < 2 ||
430 raw_headers_[raw_headers_.size() - 2] != '\0' ||
431 raw_headers_[raw_headers_.size() - 1] != '\0') {
432 raw_headers_.push_back('\0');
436 line_end = raw_headers_.begin() + status_line_len - 1;
438 HttpUtil::HeadersIterator headers(line_end + 1, raw_headers_.end(),
447 DCHECK_EQ('\0', raw_headers_[raw_headers_.size() - 2]);
448 DCHECK_EQ('\0', raw_headers_[raw_headers_.size() - 1]);
454 output->assign(raw_headers_.c_str());
536 return std::string(raw_headers_.c_str());
679 raw_headers_ = "HTTP/0.9";
682 raw_headers_ = "HTTP/1.1";
686 raw_headers_ = "HTTP/1.0";
698 raw_headers_.append(" 200 OK");
713 raw_headers_.append(" 200 OK");
717 raw_headers_.push_back(' ');
718 raw_headers_.append(code, p);
719 raw_headers_.push_back(' ');
734 raw_headers_.append("OK");
736 raw_headers_.append(p, line_end);
795 name_begin = name_end = raw_headers_.end();