Home
last modified time | relevance | path

Searched refs:HttpVersion (Results 1 – 25 of 48) sorted by relevance

12

/external/apache-http/src/org/apache/http/
DHttpVersion.java43 public final class HttpVersion extends ProtocolVersion class
52 public static final HttpVersion HTTP_0_9 = new HttpVersion(0, 9);
55 public static final HttpVersion HTTP_1_0 = new HttpVersion(1, 0);
58 public static final HttpVersion HTTP_1_1 = new HttpVersion(1, 1);
69 public HttpVersion(int major, int minor) { in HttpVersion() method in HttpVersion
101 return new HttpVersion(major, minor); in forVersion()
/external/chromium/net/http/
Dhttp_version.h14 class HttpVersion {
17 HttpVersion() : value_(0) { } in HttpVersion() function
20 HttpVersion(uint16 major, uint16 minor) : value_(major << 16 | minor) { } in HttpVersion() function
34 bool operator==(const HttpVersion& v) const {
37 bool operator!=(const HttpVersion& v) const {
40 bool operator>(const HttpVersion& v) const {
43 bool operator>=(const HttpVersion& v) const {
46 bool operator<(const HttpVersion& v) const {
49 bool operator<=(const HttpVersion& v) const {
Dhttp_response_headers_unittest.cc19 net::HttpVersion expected_parsed_version;
20 net::HttpVersion expected_version;
82 net::HttpVersion(1,1), in TEST()
83 net::HttpVersion(1,1) in TEST()
102 net::HttpVersion(1,1), in TEST()
103 net::HttpVersion(1,1) in TEST()
124 net::HttpVersion(1,1), in TEST()
125 net::HttpVersion(1,1) in TEST()
140 net::HttpVersion(0,9), in TEST()
141 net::HttpVersion(1,0) in TEST()
[all …]
Dhttp_response_headers.h122 HttpVersion GetHttpVersion() const { in GetHttpVersion()
127 HttpVersion GetParsedHttpVersion() const { in GetParsedHttpVersion()
269 static HttpVersion ParseVersion(std::string::const_iterator line_begin,
340 HttpVersion http_version_;
343 HttpVersion parsed_http_version_;
Dhttp_response_headers.cc539 HttpVersion HttpResponseHeaders::ParseVersion( in ParseVersion()
550 return HttpVersion(); in ParseVersion()
557 return HttpVersion(); in ParseVersion()
563 return HttpVersion(); in ParseVersion()
571 return HttpVersion(); in ParseVersion()
577 return HttpVersion(major, minor); in ParseVersion()
590 if (parsed_http_version_ == HttpVersion(0, 9) && !has_headers) { in ParseStatusLine()
591 http_version_ = HttpVersion(0, 9); in ParseStatusLine()
593 } else if (parsed_http_version_ >= HttpVersion(1, 1)) { in ParseStatusLine()
594 http_version_ = HttpVersion(1, 1); in ParseStatusLine()
[all …]
/external/chromium_org/net/http/
Dhttp_version.h13 class HttpVersion {
16 HttpVersion() : value_(0) { } in HttpVersion() function
19 HttpVersion(uint16 major, uint16 minor) : value_(major << 16 | minor) { } in HttpVersion() function
33 bool operator==(const HttpVersion& v) const {
36 bool operator!=(const HttpVersion& v) const {
39 bool operator>(const HttpVersion& v) const {
42 bool operator>=(const HttpVersion& v) const {
45 bool operator<(const HttpVersion& v) const {
48 bool operator<=(const HttpVersion& v) const {
Dhttp_response_headers_unittest.cc21 net::HttpVersion expected_parsed_version;
22 net::HttpVersion expected_version;
84 net::HttpVersion(1,1), in TEST()
85 net::HttpVersion(1,1) in TEST()
104 net::HttpVersion(1,1), in TEST()
105 net::HttpVersion(1,1) in TEST()
126 net::HttpVersion(1,1), in TEST()
127 net::HttpVersion(1,1) in TEST()
142 net::HttpVersion(0,9), in TEST()
143 net::HttpVersion(1,0) in TEST()
[all …]
Dhttp_response_headers.h126 HttpVersion GetHttpVersion() const { in GetHttpVersion()
131 HttpVersion GetParsedHttpVersion() const { in GetParsedHttpVersion()
315 static HttpVersion ParseVersion(std::string::const_iterator line_begin,
396 HttpVersion http_version_;
399 HttpVersion parsed_http_version_;
Dhttp_response_headers.cc603 HttpVersion HttpResponseHeaders::ParseVersion( in ParseVersion()
614 return HttpVersion(); in ParseVersion()
621 return HttpVersion(); in ParseVersion()
627 return HttpVersion(); in ParseVersion()
635 return HttpVersion(); in ParseVersion()
641 return HttpVersion(major, minor); in ParseVersion()
654 if (parsed_http_version_ == HttpVersion(0, 9) && !has_headers) { in ParseStatusLine()
655 http_version_ = HttpVersion(0, 9); in ParseStatusLine()
657 } else if (parsed_http_version_ >= HttpVersion(1, 1)) { in ParseStatusLine()
658 http_version_ = HttpVersion(1, 1); in ParseStatusLine()
[all …]
/external/chromium_org/content/renderer/media/
Dcache_util.cc20 using net::HttpVersion;
31 const HttpVersion http_version = in GetReasonsForUncacheability()
32 version == WebURLResponse::HTTP_1_1 ? HttpVersion(1, 1) : in GetReasonsForUncacheability()
33 version == WebURLResponse::HTTP_1_0 ? HttpVersion(1, 0) : in GetReasonsForUncacheability()
34 version == WebURLResponse::HTTP_0_9 ? HttpVersion(0, 9) : in GetReasonsForUncacheability()
35 HttpVersion(); in GetReasonsForUncacheability()
38 if (http_version < HttpVersion(1, 1) && code == kHttpPartialContent) in GetReasonsForUncacheability()
/external/apache-http/src/org/apache/http/impl/
DDefaultConnectionReuseStrategy.java39 import org.apache.http.HttpVersion;
103 ver.lessEquals(HttpVersion.HTTP_1_0)) { in keepAlive()
166 return !ver.lessEquals(HttpVersion.HTTP_1_0); in keepAlive()
/external/apache-http/src/org/apache/http/protocol/
DHttpService.java45 import org.apache.http.HttpVersion;
141 if (!ver.lessEquals(HttpVersion.HTTP_1_1)) { in handleRequest()
143 ver = HttpVersion.HTTP_1_1; in handleRequest()
158 response = this.responseFactory.newHttpResponse(HttpVersion.HTTP_1_0, in handleRequest()
200 (HttpVersion.HTTP_1_0, HttpStatus.SC_INTERNAL_SERVER_ERROR, in handleRequest()
DRequestExpectContinue.java41 import org.apache.http.HttpVersion;
71 && !ver.lessEquals(HttpVersion.HTTP_1_0)) { in process()
DRequestTargetHost.java43 import org.apache.http.HttpVersion;
87 if (ver.lessEquals(HttpVersion.HTTP_1_0)) { in process()
DRequestContent.java41 import org.apache.http.HttpVersion;
80 if (ver.lessEquals(HttpVersion.HTTP_1_0)) { in process()
DResponseContent.java41 import org.apache.http.HttpVersion;
76 if (entity.isChunked() && !ver.lessEquals(HttpVersion.HTTP_1_0)) { in process()
DResponseConnControl.java43 import org.apache.http.HttpVersion;
88 (!entity.isChunked() || ver.lessEquals(HttpVersion.HTTP_1_0))) { in process()
DHttpRequestExecutor.java43 import org.apache.http.HttpVersion;
210 !ver.lessEquals(HttpVersion.HTTP_1_0)) { in doSendRequest()
/external/apache-http/src/org/apache/http/params/
DHttpProtocolParamBean.java34 import org.apache.http.HttpVersion;
50 public void setVersion (final HttpVersion version) { in setVersion()
DHttpProtocolParams.java34 import org.apache.http.HttpVersion;
130 return HttpVersion.HTTP_1_1; in getVersion()
/external/apache-http/src/org/apache/http/impl/entity/
DStrictContentLengthStrategy.java37 import org.apache.http.HttpVersion;
195 if (message.getProtocolVersion().lessEquals(HttpVersion.HTTP_1_0)) { in determineLength()
/external/smack/src/com/kenai/jbosh/
DApacheHTTPSender.java23 import org.apache.http.HttpVersion;
130 HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); in initHttpClient()
/external/chromium/third_party/libjingle/source/talk/base/
Dhttpcommon.h74 enum HttpVersion { enum
143 const char* ToString(HttpVersion version);
144 bool FromString(HttpVersion& version, const std::string& str);
300 HttpVersion version;
/external/chromium_org/third_party/libjingle/source/talk/base/
Dhttpcommon.h74 enum HttpVersion { enum
143 const char* ToString(HttpVersion version);
144 bool FromString(HttpVersion& version, const std::string& str);
300 HttpVersion version;
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/
DTestHttpResponse.java7 import org.apache.http.HttpVersion;
234 return new HttpVersion(1, 0);

12