Home
last modified time | relevance | path

Searched refs:request (Results 1 – 14 of 14) sorted by relevance

/libcore/support/src/test/java/tests/http/
DMockWebServer.java309 RecordedRequest request = readRequest(in, sequenceNumber); in serveConnection()
310 if (request == null) { in serveConnection()
313 MockResponse response = dispatch(request); in serveConnection()
333 String request; in readRequest() local
335 request = readAsciiUntilCrlf(in); in readRequest()
339 if (request.isEmpty()) { in readRequest()
379 if (request.startsWith("OPTIONS ") || request.startsWith("GET ") in readRequest()
380 || request.startsWith("HEAD ") || request.startsWith("DELETE ") in readRequest()
381 || request .startsWith("TRACE ") || request.startsWith("CONNECT ")) { in readRequest()
383 throw new IllegalArgumentException("Request must not have a body: " + request); in readRequest()
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ldap/
DLDAPCertStore.java440 private Collection<X509Certificate> getCertificates(LDAPRequest request, in getCertificates() argument
446 encodedCert = request.getValues(id); in getCertificates()
489 LDAPRequest request, String id) throws CertStoreException { in getCertPairs() argument
494 encodedCertPair = request.getValues(id); in getCertPairs()
543 LDAPRequest request, X509CertSelector forward, in getMatchingCrossCerts() argument
548 getCertPairs(request, CROSS_CERT); in getMatchingCrossCerts()
625 LDAPRequest request = new LDAPRequest(subject); in engineGetCertificates() local
627 request.addRequestedAttribute(CROSS_CERT); in engineGetCertificates()
628 request.addRequestedAttribute(CA_CERT); in engineGetCertificates()
629 request.addRequestedAttribute(ARL); in engineGetCertificates()
[all …]
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DChunkHandler.java55 public abstract Chunk handleChunk(Chunk request); in handleChunk() argument
77 public static ByteBuffer wrapChunk(Chunk request) { in wrapChunk() argument
80 in = ByteBuffer.wrap(request.data, request.offset, request.length); in wrapChunk()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java691 HttpsURLConnection connection, RecordedRequest request) throws Exception { in checkConnectionStateParameters() argument
692 assertEquals(request.getSslCipherSuite(), connection.getCipherSuite()); in checkConnectionStateParameters()
693 assertEquals(request.getSslLocalPrincipal(), connection.getPeerPrincipal()); in checkConnectionStateParameters()
694 assertEquals(request.getSslPeerPrincipal(), connection.getLocalPrincipal()); in checkConnectionStateParameters()
697 Certificate[] localCertificates = request.getSslLocalCertificates(); in checkConnectionStateParameters()
702 serverCertificates = request.getSslPeerCertificates(); in checkConnectionStateParameters()
832 public MockResponse dispatch(RecordedRequest request) throws InterruptedException { in dispatch() argument
833 return delegates.removeFirst().dispatch(request); in dispatch()
846 public MockResponse dispatch(RecordedRequest request) throws InterruptedException { in dispatch() argument
847 assertEquals("CONNECT", request.getMethod()); in dispatch()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DSSLSocketBenchmark.java45 final byte[] request; field in SSLSocketBenchmark.WebSite
62 this.request = ("GET " + uri + " HTTP/1.0\r\n" in WebSite()
85 out.write(webSite.request); in time()
DURLConnectionBenchmark.java46 @Override public MockResponse dispatch(RecordedRequest request) { in dispatch() argument
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java247 RecordedRequest request = server.takeRequest(); in testRequestHeaders() local
248 assertContains(request.getHeaders(), "D: e"); in testRequestHeaders()
249 assertContains(request.getHeaders(), "D: f"); in testRequestHeaders()
250 assertContainsNoneMatching(request.getHeaders(), "NullValue.*"); in testRequestHeaders()
251 assertContainsNoneMatching(request.getHeaders(), "AnotherNullValue.*"); in testRequestHeaders()
252 assertContainsNoneMatching(request.getHeaders(), "G:.*"); in testRequestHeaders()
253 assertContainsNoneMatching(request.getHeaders(), "null:.*"); in testRequestHeaders()
497 RecordedRequest request = server.takeRequest(); in doUpload() local
498 assertEquals(n, request.getBodySize()); in doUpload()
500 assertTrue(request.getChunkSizes().size() > 0); in doUpload()
[all …]
DAbstractCookiesTest.java353 RecordedRequest request = server.takeRequest(); in testSendingCookiesFromStore() local
355 List<String> receivedHeaders = request.getHeaders(); in testSendingCookiesFromStore()
381 RecordedRequest request = redirectSource.takeRequest(); in testRedirectsDoNotIncludeTooManyCookies() local
383 assertContains(request.getHeaders(), "Cookie: $Version=\"1\"; " in testRedirectsDoNotIncludeTooManyCookies()
429 RecordedRequest request = server.takeRequest(); in testHeadersSentToCookieHandler() local
450 assertContainsAll(request.getHeaders(), "Foo: foo", "Cookie: Bar=bar", "Cookie2: Baz=baz"); in testHeadersSentToCookieHandler()
451 assertFalse(request.getHeaders().contains("Quux: quux")); in testHeadersSentToCookieHandler()
470 RecordedRequest request = server.takeRequest(); in testCookiesSentIgnoresCase() local
471 assertContainsAll(request.getHeaders(), "COOKIE: Bar=bar", "cooKIE2: Baz=baz"); in testCookiesSentIgnoresCase()
472 assertFalse(request.getHeaders().contains("Quux: quux")); in testCookiesSentIgnoresCase()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DOCSP.java206 OCSPRequest request = null; in check() local
208 request = new OCSPRequest(certIds, extensions); in check()
209 bytes = request.encodeBytes(); in check()
291 request.getNonce()); in check()
/libcore/luni/src/test/java/libcore/io/
DOsTest.java113 byte[] request = new byte[256]; in checkUnixDomainSocket()
114 Libcore.os.read(clientFd, request, 0, request.length); in checkUnixDomainSocket()
116 String s = new String(request, "UTF-8"); in checkUnixDomainSocket()
135 byte[] request = string.getBytes("UTF-8"); in checkUnixDomainSocket()
136 assertEquals(request.length, Libcore.os.write(clientFd, request, 0, request.length)); in checkUnixDomainSocket()
138 byte[] response = new byte[request.length]; in checkUnixDomainSocket()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java106 String request = new String(buff, 0, num); in run() local
108 request.toLowerCase().indexOf("proxy-authorization:") > 0; in run()
/libcore/ojluni/src/main/java/java/util/
DBitSet.java330 int request = Math.max(2 * words.length, wordsRequired); in ensureCapacity() local
331 words = Arrays.copyOf(words, request); in ensureCapacity()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSocketChannelTest.java2189 byte[] request = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; in testReadByteBuffer_Direct2()
2201 out.write(request); in testReadByteBuffer_Direct2()
2209 buffer.limit(request.length); in testReadByteBuffer_Direct2()
2214 assertEquals(request.length, buffer.limit()); in testReadByteBuffer_Direct2()
2216 assertEquals(ByteBuffer.wrap(request), buffer); in testReadByteBuffer_Direct2()
/libcore/support/src/test/java/tests/resources/x509/
Ddefault.cnf143 req_extensions = v3_req # The extensions to add to a certificate request