Lines Matching refs:StringPiece
137 void WriteToContiguousBuffer(const base::StringPiece& sp);
149 base::StringPiece Write(const base::StringPiece& sp,
274 typedef std::vector<base::StringPiece> HeaderTokenList;
299 typedef std::pair<base::StringPiece, base::StringPiece> StringPiecePair;
402 base::StringPiece(stream_begin + line.first_char_idx, in Lookup()
404 base::StringPiece(stream_begin + line.value_begin_idx, in Lookup()
558 const base::StringPiece& key) in const_header_lines_key_iterator()
573 base::StringPiece key_;
631 void HackHeader(const base::StringPiece& key, const base::StringPiece& value);
642 void HackAppendToHeader(const base::StringPiece& key,
643 const base::StringPiece& value);
651 void ReplaceOrAppendHeader(const base::StringPiece& key,
652 const base::StringPiece& value);
662 void AppendHeader(const base::StringPiece& key,
663 const base::StringPiece& value);
669 void AppendToHeader(const base::StringPiece& key,
670 const base::StringPiece& value);
676 void PrependToHeader(const base::StringPiece& key,
677 const base::StringPiece& value);
679 const base::StringPiece GetHeader(const base::StringPiece& key) const;
704 void GetAllOfHeader(const base::StringPiece& key,
705 std::vector<base::StringPiece>* out) const;
710 void GetAllOfHeaderAsString(const base::StringPiece& key,
715 static bool IsMultivaluedHeader(const base::StringPiece& header);
718 inline bool HasHeader(const base::StringPiece& key) const { in HasHeader()
724 bool HasNonEmptyHeader(const base::StringPiece& key) const;
727 const base::StringPiece& key) const;
735 const base::StringPiece& key) const;
737 void RemoveAllOfHeader(const base::StringPiece& key);
740 void RemoveAllHeadersWithPrefix(const base::StringPiece& key);
800 base::StringPiece(line_ptr + line.first_char_idx, in WriteToBuffer()
802 base::StringPiece(line_ptr + line.value_begin_idx, in WriteToBuffer()
815 const base::StringPiece& key, in WriteHeaderLineToBuffer()
816 const base::StringPiece& value) { in WriteHeaderLineToBuffer()
836 const base::StringPiece first_line() const { in first_line()
838 return base::StringPiece(BeginningOfFirstLine() + non_whitespace_1_idx_, in first_line()
850 const base::StringPiece request_method() const { in request_method()
852 return base::StringPiece(BeginningOfFirstLine() + non_whitespace_1_idx_, in request_method()
856 const base::StringPiece response_version() const { in response_version()
864 const base::StringPiece request_uri() const { in request_uri()
866 return base::StringPiece(BeginningOfFirstLine() + non_whitespace_2_idx_, in request_uri()
870 const base::StringPiece response_code() const { in response_code()
877 const base::StringPiece request_version() const { in request_version()
879 return base::StringPiece(BeginningOfFirstLine() + non_whitespace_3_idx_, in request_version()
883 const base::StringPiece response_reason_phrase() const { in response_reason_phrase()
897 void SetFirstlineFromStringPieces(const base::StringPiece& firstline_a,
898 const base::StringPiece& firstline_b,
899 const base::StringPiece& firstline_c);
901 void SetRequestFirstlineFromStringPieces(const base::StringPiece& method, in SetRequestFirstlineFromStringPieces()
902 const base::StringPiece& uri, in SetRequestFirstlineFromStringPieces()
903 const base::StringPiece& version) { in SetRequestFirstlineFromStringPieces()
908 const base::StringPiece& version, in SetResponseFirstlineFromStringPieces()
909 const base::StringPiece& code, in SetResponseFirstlineFromStringPieces()
910 const base::StringPiece& reason_phrase) { in SetResponseFirstlineFromStringPieces()
917 void SetRequestMethod(const base::StringPiece& method);
918 void SetResponseVersion(const base::StringPiece& version);
920 void SetRequestUri(const base::StringPiece& uri);
921 void SetResponseCode(const base::StringPiece& code);
930 void SetRequestVersion(const base::StringPiece& version);
931 void SetResponseReasonPhrase(const base::StringPiece& reason_phrase);
942 void SetFirstLine(const base::StringPiece& line);
1000 balsa_buffer_.WriteToContiguousBuffer(base::StringPiece(ptr, size)); in WriteFromFramer()
1024 base::StringPiece GetValueFromHeaderLineDescription(
1027 void AddAndMakeDescription(const base::StringPiece& key,
1028 const base::StringPiece& value,
1031 void AppendOrPrependAndMakeDescription(const base::StringPiece& key,
1032 const base::StringPiece& value,
1037 void RemoveAllOfHeaderStartingAt(const base::StringPiece& key,
1044 void AppendOrPrependToHeader(const base::StringPiece& key,
1045 const base::StringPiece& value,
1049 const base::StringPiece& key,
1053 const base::StringPiece& key,
1057 const base::StringPiece& key,
1096 base::StringPiece OriginalHeadersForDebugging() const { in OriginalHeadersForDebugging()
1097 return base::StringPiece(OriginalHeaderStreamBegin(), in OriginalHeadersForDebugging()