Home
last modified time | relevance | path

Searched refs:setBody (Results 1 – 25 of 77) sorted by relevance

1234

/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java188 .setBody("ABCDE") in assertCached()
235 transferKind.setBody(mockResponse, "I love puppies but hate spiders", 1); in testResponseCaching()
263 .setBody("ABC")); in secureResponseCaching()
298 .setBody("ABC")); in responseCachingAndRedirects()
300 .setBody("DEF")); in responseCachingAndRedirects()
312 .setBody("ABC")); in redirectToCachedResult()
317 .setBody("DEF")); in redirectToCachedResult()
346 .setBody("ABC")); in secureResponseCachingAndRedirects()
348 .setBody("DEF")); in secureResponseCachingAndRedirects()
378 .setBody("ABC")); in secureResponseCachingAndProtocolRedirects()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCacheTest.java162 .setBody("ABCDE") in assertCached()
170 mockResponse.setBody(""); // We forbid bodies for 204 and 205. in assertCached()
215 transferKind.setBody(mockResponse, "I love puppies but hate spiders", 1); in testResponseCaching()
251 .setBody("ABC")); in secureResponseCaching()
291 .setBody("ABC")); in responseCachingAndRedirects()
293 .setBody("DEF")); in responseCachingAndRedirects()
310 .setBody("ABC")); in redirectToCachedResult()
315 .setBody("DEF")); in redirectToCachedResult()
350 .setBody("ABC")); in secureResponseCachingAndRedirects()
352 .setBody("DEF")); in secureResponseCachingAndRedirects()
[all …]
DURLConnectionTest.java300 server.enqueue(new MockResponse().setBody("abc")); in testRequestBodySurvivesRetries()
318 server.enqueue(new MockResponse().setBody("A")); in getErrorStreamOnSuccessfulRequest()
324 server.enqueue(new MockResponse().setResponseCode(404).setBody("A")); in getErrorStreamOnUnsuccessfulRequest()
350 MockResponse response = new MockResponse().setBody("ABCDEFGHIJKLMNOPQR"); in connectionsArePooled()
403 server.enqueue(new MockResponse().setBody("This connection won't pool properly") in testServerClosesOutput()
405 MockResponse responseAfter = new MockResponse().setBody("This comes after a busted connection"); in testServerClosesOutput()
505 server.enqueue(new MockResponse().setBody("this response comes via HTTPS")); in connectViaHttps()
548 server.enqueue(new MockResponse().setBody("this response comes via HTTPS")); in connectViaHttpsReusingConnections()
549 server.enqueue(new MockResponse().setBody("another response via HTTPS")); in connectViaHttpsReusingConnections()
570 server.enqueue(new MockResponse().setBody("this response comes via HTTPS")); in connectViaHttpsReusingConnectionsDifferentFactories()
[all …]
DCallTest.java111 server.enqueue(new MockResponse().setBody("abc").addHeader("Content-Type: text/plain")); in get()
226 server.enqueue(new MockResponse().setBody("abc")); in post()
255 server.enqueue(new MockResponse().setBody("abc")); in postZeroLength()
342 server.enqueue(new MockResponse().setBody("Success!")); in attemptAuthorization20Times()
370 server.enqueue(new MockResponse().setBody("abc")); in delete()
399 server.enqueue(new MockResponse().setBody("abc")); in deleteWithRequestBody()
416 server.enqueue(new MockResponse().setBody("abc")); in put()
445 server.enqueue(new MockResponse().setBody("abc")); in patch()
491 .setBody("abc") in illegalToExecuteTwice()
521 .setBody("abc") in illegalToExecuteTwice_Async()
[all …]
DSocksProxyTest.java48 server.enqueue(new MockResponse().setBody("abc")); in proxy()
49 server.enqueue(new MockResponse().setBody("def")); in proxy()
67 server.enqueue(new MockResponse().setBody("abc")); in proxySelector()
DInterceptorTest.java179 .setBody(gzip("abcabcabc")) in networkInterceptorsObserveNetworkHeaders()
260 .setBody("abc")); in rewriteResponseFromServer()
360 server.enqueue(new MockResponse().setBody("a")); in applicationInterceptorsCanMakeMultipleRequestsToServer()
361 server.enqueue(new MockResponse().setBody("b")); in applicationInterceptorsCanMakeMultipleRequestsToServer()
380 server.enqueue(new MockResponse().setBody("a")); // Fetched by interceptor. in interceptorMakesAnUnrelatedRequest()
381 server.enqueue(new MockResponse().setBody("b")); // Fetched directly. in interceptorMakesAnUnrelatedRequest()
406 server.enqueue(new MockResponse().setBody("a")); // Fetched by interceptor. in interceptorMakesAnUnrelatedAsyncRequest()
407 server.enqueue(new MockResponse().setBody("b")); // Fetched directly. in interceptorMakesAnUnrelatedAsyncRequest()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java171 .setBody("ABCDE") in assertCached()
219 transferKind.setBody(response, "I love puppies but hate spiders", 1); in testResponseCaching()
252 .setBody("ABC")); in secureResponseCaching()
289 .setBody("ABC")); in responseCachingAndRedirects()
290 server.enqueue(new MockResponse().setBody("DEF")); in responseCachingAndRedirects()
304 server.enqueue(new MockResponse().addHeader("Cache-Control: max-age=60").setBody("ABC")); in redirectToCachedResult()
307 server.enqueue(new MockResponse().setBody("DEF")); in redirectToCachedResult()
334 .setBody("ABC")); in secureResponseCachingAndRedirects()
335 server.enqueue(new MockResponse().setBody("DEF")); in secureResponseCachingAndRedirects()
366 .setBody("ABC")); in secureResponseCachingAndProtocolRedirects()
[all …]
DOkUrlFactoryTest.java57 server.enqueue(new MockResponse().setBody("Isla Sorna")); in networkResponseSourceHeader()
75 .setBody("Isla Nublar")); in conditionalCacheHitResponseSourceHeaders()
91 .setBody("Isla Nublar")); in conditionalCacheMissResponseSourceHeaders()
92 server.enqueue(new MockResponse().setBody("Isla Sorna")); in conditionalCacheMissResponseSourceHeaders()
106 .setBody("Isla Nublar")); in cacheResponseSourceHeaders()
118 server.enqueue(new MockResponse().setBody("Isla Nublar")); in noneResponseSourceHeaders()
134 .setBody("A")); in setInstanceFollowRedirectsFalse()
136 .setBody("B")); in setInstanceFollowRedirectsFalse()
147 .setBody("B")); in testURLFilter()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DHttpOverSpdyTest.java97 MockResponse response = new MockResponse().setBody("ABCDE").setStatus("HTTP/1.1 200 Sweet"); in get()
121 server.enqueue(new MockResponse().setBody("ABCDE")); in noDefaultContentLengthOnStreamingPost()
136 server.enqueue(new MockResponse().setBody("ABCDE")); in userSuppliedContentLengthHeader()
151 server.enqueue(new MockResponse().setBody("ABCDE")); in closeAfterFlush()
168 server.enqueue(new MockResponse().setBody("ABCDE")); in setFixedLengthStreamingModeSetsContentLength()
183 server.enqueue(new MockResponse().setBody("ABCDEF")); in spdyConnectionReuse()
184 server.enqueue(new MockResponse().setBody("GHIJKL")); in spdyConnectionReuse()
197 server.enqueue(new MockResponse().setBody("A")); in synchronousSpdyRequest()
198 server.enqueue(new MockResponse().setBody("A")); in synchronousSpdyRequest()
211 new MockResponse().addHeader("Content-Encoding: gzip").setBody(gzip("ABCABCABC"))); in gzippedResponseBody()
[all …]
DHttpOverHttp2Test.java36 new MockResponse().setBody("bar").setStatus("HTTP/1.1 200 Sweet")); in serverSendsPushPromise_GET()
38 .setBody("ABCDE") in serverSendsPushPromise_GET()
62 .setBody("ABCDE") in serverSendsPushPromise_HEAD()
DThreadInterruptTest.java106 .setBody(new Buffer().write(new byte[responseBodySize])) in interruptReadingResponseBody()
DDisconnectTest.java104 .setBody(new Buffer().write(new byte[responseBodySize])) in interruptReadingResponseBody()
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DMockWebServerTest.java70 MockResponse response = new MockResponse().setBody("ABC"); in testSetBodyAdjustsHeaders()
101 server.enqueue(new MockResponse().setBody("hello world")); in testRegularResponse()
122 .setBody("This page has moved!")); in testRedirect()
123 server.enqueue(new MockResponse().setBody("This is the new location!")); in testRedirect()
149 server.enqueue(new MockResponse().setBody("enqueued in the background")); in testDispatchBlocksWaitingForEnqueue()
161 .setBody("G\r\nxxxxxxxxxxxxxxxx\r\n0\r\n\r\n") in testNonHexadecimalChunkSize()
177 .setBody("ABC") in testResponseTimeout()
181 .setBody("DEF")); in testResponseTimeout()
222 server.enqueue(new MockResponse().setBody(responseBody, 3)); in testStreamingResponseBody()
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DMockWebServerTest.java57 MockResponse response = new MockResponse().setBody("ABC"); in setBodyAdjustsHeaders()
82 server.enqueue(new MockResponse().setBody("hello world")); in regularResponse()
101 .setBody("This page has moved!")); in redirect()
102 server.enqueue(new MockResponse().setBody("This is the new location!")); in redirect()
126 server.enqueue(new MockResponse().setBody("enqueued in the background")); in dispatchBlocksWaitingForEnqueue()
138 .setBody("G\r\nxxxxxxxxxxxxxxxx\r\n0\r\n\r\n") in nonHexadecimalChunkSize()
153 .setBody("ABC") in responseTimeout()
156 server.enqueue(new MockResponse().setBody("DEF")); in responseTimeout()
219 .setBody("ABCDEF")
242 .setBody("ABCDEF")
[all …]
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockResponse.java57 setBody(new byte[0]); in MockResponse()
157 public MockResponse setBody(byte[] body) { in setBody() method in MockResponse
164 public MockResponse setBody(InputStream bodyStream, long bodyLength) { in setBody() method in MockResponse
174 public MockResponse setBody(String body) { in setBody() method in MockResponse
176 return setBody(body.getBytes("UTF-8")); in setBody()
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
DOkApacheClientTest.java48 server.enqueue(new MockResponse().setBody("Hello, World!")); in success()
58 server.enqueue(new MockResponse().setBody("Hello, Redirect!")); in redirect()
150 server.enqueue(new MockResponse().setBody("<html><body><h1>Hello, World!</h1></body></html>") in contentType()
152 server.enqueue(new MockResponse().setBody("{\"Message\": { \"text\": \"Hello, World!\" } }") in contentType()
154 server.enqueue(new MockResponse().setBody("Hello, World!")); in contentType()
180 server.enqueue(new MockResponse().setBody("{\"Message\": { \"text\": \"Hello, World!\" } }") in contentTypeIsCaseInsensitive()
190 server.enqueue(new MockResponse().setBody(gzip(text)) in contentEncoding()
209 server.enqueue(new MockResponse().setBody(gzip(text)) in jsonGzipResponse()
236 server.enqueue(new MockResponse().setBody(gzip(text)) in jsonTransparentGzipResponse()
/external/okhttp/samples/static-server/src/main/java/com/squareup/okhttp/sample/
DSampleServer.java53 .setBody("NOT FOUND: " + path); in dispatch()
58 .setBody("SERVER ERROR: " + e); in dispatch()
77 .setBody(response.toString()); in directoryToResponse()
83 .setBody(fileToBytes(file)) in fileToResponse()
/external/okhttp/mockwebserver/
DREADME.md37 server.enqueue(new MockResponse().setBody("hello, world!"));
38 server.enqueue(new MockResponse().setBody("sup, bra?"));
39 server.enqueue(new MockResponse().setBody("yo dog"));
92 .setBody("{}");
130 return new MockResponse().setResponseCode(200).setBody("version=9");
132 …return new MockResponse().setResponseCode(200).setBody("{\\\"info\\\":{\\\"name\":\"Lucas Albuquer…
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockResponse.java145 public MockResponse setBody(Buffer body) { in setBody() method in MockResponse
152 public MockResponse setBody(String body) { in setBody() method in MockResponse
153 return setBody(new Buffer().writeUtf8(body)); in setBody()
/external/javassist/src/main/javassist/
DCtConstructor.java209 public void setBody(String src) throws CannotCompileException { in setBody() method in CtConstructor
216 super.setBody(src); in setBody()
231 public void setBody(CtConstructor src, ClassMap map) in setBody() method in CtConstructor
DCtNewConstructor.java102 cc.setBody(body); in make()
DCtBehavior.java374 public void setBody(String src) throws CannotCompileException { in setBody() method in CtBehavior
375 setBody(src, null, null); in setBody()
390 public void setBody(String src, in setBody() method in CtBehavior
/external/llvm/lib/IR/
DType.cpp409 ST->setBody(ETypes, isPacked); in get()
418 void StructType::setBody(ArrayRef<Type*> Elements, bool isPacked) { in setBody() function in StructType
514 ST->setBody(Elements, isPacked); in create()
585 void StructType::setBody(Type *type, ...) { in setBody() function in StructType
594 setBody(StructFields); in setBody()
/external/vulkan-validation-layers/
Dvk_helper.py427 def setBody(self, b): member in CommonFileGen
504 self.hfg.setBody(self._generateClassDeclaration())
512 self.cfg.setBody(self._generateClassDefinition())
521 self.ssh.setBody(self._generateSafeStructDecls())
527 self.sss.setBody(self._generateSafeStructSource())
535 self.shg.setBody(self._generateStringHelperFunctions())
543 self.shcppg.setBody(self._generateStringHelperFunctionsCpp())
551 self.vhg.setBody(self._generateValidateHelperFunctions())
558 self.size_helper_gen.setBody(self._generateSizeHelperFunctions())
565 self.size_helper_c_gen.setBody(self._generateSizeHelperFunctionsC())
[all …]
/external/llvm/include/llvm/IR/
DDerivedTypes.h265 void setBody(ArrayRef<Type*> Elements, bool isPacked = false);
266 void setBody(Type *elt1, ...) LLVM_END_WITH_NULL;

1234