/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | StatusLine.java | 11 private final String statusLine; field in StatusLine 17 public StatusLine(String statusLine) throws IOException { in StatusLine() argument 24 if (statusLine.startsWith("HTTP/1.")) { in StatusLine() 25 if (statusLine.length() < 9 || statusLine.charAt(8) != ' ') { in StatusLine() 26 throw new ProtocolException("Unexpected status line: " + statusLine); in StatusLine() 28 httpMinorVersion = statusLine.charAt(7) - '0'; in StatusLine() 31 throw new ProtocolException("Unexpected status line: " + statusLine); in StatusLine() 33 } else if (statusLine.startsWith("ICY ")) { in StatusLine() 38 throw new ProtocolException("Unexpected status line: " + statusLine); in StatusLine() 42 if (statusLine.length() < codeStart + 3) { in StatusLine() [all …]
|
D | JavaApiConverter.java | 68 String statusLine = extractStatusLine(httpUrlConnection); in createOkResponse() local 69 okResponseBuilder.statusLine(statusLine); in createOkResponse() 116 okResponseBuilder.statusLine(extractStatusLine(javaResponse)); in createOkResponse() 219 return OkHeaders.toMultimap(headers, response.statusLine()); in createJavaCacheResponse() 233 return OkHeaders.toMultimap(headers, response.statusLine()); in createJavaCacheResponse() 485 return response.statusLine(); 492 return fieldName == null ? response.statusLine() : response.headers().get(fieldName); 497 return OkHeaders.toMultimap(response.headers(), response.statusLine());
|
D | HttpConnection.java | 180 StatusLine statusLine = new StatusLine(statusLineString); in readResponse() local 183 .statusLine(statusLine) in readResponse() 190 if (statusLine.code() != HTTP_CONTINUE) { in readResponse()
|
D | HttpURLConnectionImpl.java | 162 return fieldName == null ? response.statusLine() : response.headers().get(fieldName); in getHeaderField() 179 return OkHeaders.toMultimap(response.headers(), response.statusLine()); in getHeaderFields()
|
D | CacheStrategy.java | 175 .statusLine(GATEWAY_TIMEOUT_STATUS_LINE) in get()
|
D | SpdyTransport.java | 207 .statusLine(new StatusLine(version + " " + status)) in readNameValueBlock()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | StatusLineTest.java | 30 StatusLine statusLine = new StatusLine("HTTP/1." + version + " " + code + " " + message); in parse() local 31 assertEquals(message, statusLine.message()); in parse() 32 assertEquals(version, statusLine.httpMinorVersion()); in parse() 33 assertEquals(code, statusLine.code()); in parse() 39 StatusLine statusLine = new StatusLine("HTTP/1." + version + " " + code + " "); in emptyMessage() local 40 assertEquals("", statusLine.message()); in emptyMessage() 41 assertEquals(version, statusLine.httpMinorVersion()); in emptyMessage() 42 assertEquals(code, statusLine.code()); in emptyMessage() 53 StatusLine statusLine = new StatusLine("HTTP/1." + version + " " + code); in emptyMessageAndNoLeadingSpace() local 54 assertEquals("", statusLine.message()); in emptyMessageAndNoLeadingSpace() [all …]
|
D | JavaApiConverterTest.java | 147 String statusLine = "HTTP/1.1 200 Fantastic"; in testCreateOkResponseInternal() local 151 .setStatus(statusLine) in testCreateOkResponseInternal() 186 assertEquals(statusLine, response.statusLine()); in testCreateOkResponseInternal() 207 final String statusLine = "HTTP/1.1 200 Fantastic"; in createOkResponse_fromCacheResponse() local 214 headers.put(null, Collections.singletonList(statusLine)); in createOkResponse_fromCacheResponse() 228 assertNotNullAndEquals(statusLine, response.statusLine()); in createOkResponse_fromCacheResponse() 236 final String statusLine = "HTTP/1.1 200 Fantastic"; in createOkResponse_fromSecureCacheResponse() local 247 headers.put(null, Collections.singletonList(statusLine)); in createOkResponse_fromSecureCacheResponse() 286 assertNotNullAndEquals(statusLine, response.statusLine()); in createOkResponse_fromSecureCacheResponse() 428 final String statusLine = "HTTP/1.1 200 Fantastic"; in createJavaUrlConnection_responseHeadersOk() local [all …]
|
D | ResponseCacheAdapterTest.java | 138 final String statusLine = "HTTP/1.1 200 Fantastic"; in put_httpGet() local 141 .setStatus(statusLine) in put_httpGet() 163 assertEquals(statusLine, httpUrlConnection.getHeaderField(null)); in put_httpGet() 178 final String statusLine = "HTTP/1.1 200 Fantastic"; in put_httpPost() local 181 .setStatus(statusLine) in put_httpPost() 203 assertEquals(statusLine, httpUrlConnection.getHeaderField(null)); in put_httpPost()
|
D | HeadersTest.java | 43 assertEquals("HTTP/1.1 200 OK", response.statusLine()); in parseNameValueBlock()
|
/external/nist-sip/java/gov/nist/javax/sip/message/ |
D | SIPResponse.java | 74 protected StatusLine statusLine; field in SIPResponse 312 if (this.statusLine == null) in setStatusCode() 313 this.statusLine = new StatusLine(); in setStatusCode() 314 this.statusLine.setStatusCode(statusCode); in setStatusCode() 322 return statusLine; in getStatusLine() 329 return statusLine.getStatusCode(); in getStatusCode() 339 if (this.statusLine == null) in setReasonPhrase() 340 this.statusLine = new StatusLine(); in setReasonPhrase() 341 this.statusLine.setReasonPhrase(reasonPhrase); in setReasonPhrase() 348 if (statusLine == null || statusLine.getReasonPhrase() == null) in getReasonPhrase() [all …]
|
D | MessageFactoryImpl.java | 296 StatusLine statusLine = new StatusLine(); in createResponse() local 297 statusLine.setStatusCode(statusCode); in createResponse() 301 statusLine.setReasonPhrase(reasonPhrase); in createResponse() 302 sipResponse.setStatusLine(statusLine); in createResponse() 607 StatusLine statusLine = new StatusLine(); in createResponse() local 608 statusLine.setStatusCode(statusCode); in createResponse() 612 statusLine.setReasonPhrase(reason); in createResponse() 613 sipResponse.setStatusLine(statusLine); in createResponse() 663 StatusLine statusLine = new StatusLine(); in createResponse() local 664 statusLine.setStatusCode(statusCode); in createResponse() [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | Response.java | 48 private final StatusLine statusLine; field in Response 61 this.statusLine = builder.statusLine; in Response() 86 public String statusLine() { in statusLine() method in Response 87 return statusLine.getStatusLine(); in statusLine() 91 return statusLine.code(); in code() 95 return statusLine.message(); in statusMessage() 99 return statusLine.httpMinorVersion(); in httpMinorVersion() 383 private StatusLine statusLine; field in Response.Builder 397 this.statusLine = response.statusLine; in Builder() 411 public Builder statusLine(StatusLine statusLine) { in statusLine() method in Response.Builder [all …]
|
D | HttpResponseCache.java | 390 private final String statusLine; field in HttpResponseCache.Entry 455 statusLine = source.readUtf8LineStrict(); in Entry() 484 this.statusLine = response.statusLine(); in Entry() 500 writer.write(statusLine + '\n'); in writeTo() 561 .statusLine(statusLine) in response()
|
/external/apache-http/src/org/apache/http/impl/client/ |
D | BasicResponseHandler.java | 74 StatusLine statusLine = response.getStatusLine(); in handleResponse() local 75 if (statusLine.getStatusCode() >= 300) { in handleResponse() 76 throw new HttpResponseException(statusLine.getStatusCode(), in handleResponse() 77 statusLine.getReasonPhrase()); in handleResponse()
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/debugger/live-headers/ |
D | headers.js | 50 var statusLine = document.createElement("div"); 51 statusLine.textContent = "\nHTTP/1.1 " + response.status + " " + 53 requestDiv.appendChild(statusLine);
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
D | StatusLineParser.java | 41 public StatusLineParser(String statusLine) { in StatusLineParser() argument 42 this.lexer = new Lexer("status_lineLexer", statusLine); in StatusLineParser()
|
D | StringMsgParser.java | 608 public StatusLine parseSIPStatusLine(String statusLine) in parseSIPStatusLine() argument 610 statusLine += "\n"; in parseSIPStatusLine() 611 return new StatusLineParser(statusLine).parse(); in parseSIPStatusLine()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/ |
D | TestHttpResponse.java | 26 private TestStatusLine statusLine = new TestStatusLine(); field in TestHttpResponse 57 return statusLine; in getStatusLine()
|
D | HttpResponseStub.java | 19 @Override public void setStatusLine(StatusLine statusLine) { in setStatusLine() argument
|
/external/chromium_org/third_party/WebKit/Source/platform/network/ |
D | HTTPParsers.cpp | 451 String extractReasonPhraseFromHTTPStatusLine(const String& statusLine) in extractReasonPhraseFromHTTPStatusLine() argument 453 size_t spacePos = statusLine.find(' '); in extractReasonPhraseFromHTTPStatusLine() 455 spacePos = statusLine.find(' ', spacePos + 1); in extractReasonPhraseFromHTTPStatusLine() 456 return statusLine.substring(spacePos + 1); in extractReasonPhraseFromHTTPStatusLine()
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
D | HeaderFactoryExt.java | 54 public SipStatusLine createStatusLine(String statusLine) throws ParseException; in createStatusLine() argument
|
D | HeaderFactoryImpl.java | 1665 public SipStatusLine createStatusLine(String statusLine) throws ParseException { in createStatusLine() argument 1666 StatusLineParser statusLineParser = new StatusLineParser(statusLine); in createStatusLine()
|
/external/okhttp/okcurl/src/main/java/com/squareup/okhttp/curl/ |
D | Main.java | 135 System.out.println(response.statusLine());
|