OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_QUIC_HTTP_REQUEST_LINE_H_ |
| 6 #define NET_QUIC_HTTP_REQUEST_LINE_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/strings/string_piece.h" |
| 11 #include "net/spdy/spdy_header_block.h" |
| 12 #include "net/spdy/spdy_protocol.h" |
| 13 |
| 14 class HttpRequestLine { |
| 15 public: |
| 16 HttpRequestLine(base::StringPiece method, |
| 17 base::StringPiece path, |
| 18 base::StringPiece version, |
| 19 base::StringPiece host); |
| 20 ~HttpRequestLine(); |
| 21 |
| 22 static HttpRequestLine* FromSpdyHeaders(const net::SpdyHeaderBlock& headers); |
| 23 |
| 24 base::StringPiece method() const { return method_; } |
| 25 base::StringPiece path() const { return path_; } |
| 26 base::StringPiece version() const { return version_; } |
| 27 base::StringPiece host() const { return host_; } |
| 28 |
| 29 std::string FullPath() const; |
| 30 |
| 31 private: |
| 32 std::string method_; |
| 33 std::string path_; |
| 34 std::string version_; |
| 35 std::string host_; |
| 36 }; |
| 37 |
| 38 #endif // NET_QUIC_HTTP_REQUEST_LINE_H_ |
OLD | NEW |