OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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_HTTP_BIDIRECTIONAL_STREAM_REQUEST_INFO_H_ |
| 6 #define NET_HTTP_BIDIRECTIONAL_STREAM_REQUEST_INFO_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "net/base/net_export.h" |
| 11 #include "net/base/request_priority.h" |
| 12 #include "net/http/http_request_headers.h" |
| 13 #include "url/gurl.h" |
| 14 |
| 15 namespace net { |
| 16 |
| 17 // Struct containing information needed to request a BidirectionalStream. |
| 18 struct NET_EXPORT BidirectionalStreamRequestInfo { |
| 19 BidirectionalStreamRequestInfo(); |
| 20 ~BidirectionalStreamRequestInfo(); |
| 21 |
| 22 // The requested URL. |
| 23 GURL url; |
| 24 |
| 25 // The method to use (GET, POST, etc.). |
| 26 std::string method; |
| 27 |
| 28 // Request priority. |
| 29 RequestPriority priority; |
| 30 |
| 31 // Any extra request headers (including User-Agent). |
| 32 HttpRequestHeaders extra_headers; |
| 33 |
| 34 // Whether END_STREAM should be set on the request HEADER frame. |
| 35 bool end_stream_on_headers; |
| 36 }; |
| 37 |
| 38 } // namespace net |
| 39 |
| 40 #endif // NET_HTTP_BIDIRECTIONAL_STREAM_REQUEST_INFO_H_ |
OLD | NEW |