Home | History | Annotate | Download | only in http

Lines Matching refs:string

11 #include <string>
219 Request(const std::string& url,
220 const std::string& method,
225 void SetAccept(const std::string& accept_mime_types);
226 const std::string& GetAccept() const;
229 void SetContentType(const std::string& content_type);
230 const std::string& GetContentType() const;
233 void AddHeader(const std::string& header, const std::string& value);
237 void RemoveHeader(const std::string& header);
265 const std::string& GetRequestURL() const;
268 const std::string& GetRequestMethod() const;
271 void SetReferer(const std::string& referer);
272 const std::string& GetReferer() const;
274 // Gets/Sets a user agent string (sent as "User-Agent:" request header).
275 void SetUserAgent(const std::string& user_agent);
276 const std::string& GetUserAgent() const;
306 const std::string request_url_;
308 const std::string method_;
311 std::string referer_;
312 // User agent string, if any. Sent to the server via "User-Agent: " header.
313 std::string user_agent_;
316 std::string content_type_;
319 std::string accept_ = "*/*";
322 std::multimap<std::string, std::string> headers_;
352 std::string GetStatusText() const;
355 std::string GetContentType() const;
364 // Extracts the data from the underlying response data stream as a string.
365 std::string ExtractDataAsString();
368 std::string GetHeader(const std::string& header_name) const;