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/http/http_request_headers.h" | |
12 #include "url/gurl.h" | |
13 | |
14 namespace net { | |
15 | |
16 // Struct containing information needed to request a BidirectionalStream. | |
17 struct NET_EXPORT BidirectionalStreamRequestInfo { | |
18 BidirectionalStreamRequestInfo(); | |
19 ~BidirectionalStreamRequestInfo(); | |
20 | |
21 // The requested URL. | |
22 GURL url; | |
23 | |
24 // The method to use (GET, POST, etc.). | |
25 std::string method; | |
26 | |
27 // Any extra request headers (including User-Agent). | |
28 HttpRequestHeaders extra_headers; | |
29 | |
30 // Whether END_STREAM should be set on the request HEADER frame. | |
31 bool end_stream_on_headers; | |
mef
2015/12/15 22:59:40
maybe add request_priority field here?
xunjieli
2015/12/16 00:26:09
Done.
| |
32 }; | |
33 | |
34 } // namespace net | |
35 | |
36 #endif // NET_HTTP_BIDIRECTIONAL_STREAM_REQUEST_INFO_H_ | |
OLD | NEW |