- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 33 for puts (0.19 sec)
-
okhttp/src/main/kotlin/okhttp3/Request.kt
open fun post(body: RequestBody): Builder = commonPost(body) @JvmOverloads open fun delete(body: RequestBody? = commonEmptyRequestBody): Builder = commonDelete(body) open fun put(body: RequestBody): Builder = commonPut(body) open fun patch(body: RequestBody): Builder = commonPatch(body) open fun method( method: String, body: RequestBody?,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:17:44 GMT 2024 - 10.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/InterceptorTest.kt
.build(), ) } val request = Request.Builder() .url(server.url("/")) .addHeader("Original-Header", "foo") .method("PUT", "abc".toRequestBody("text/plain".toMediaType())) .build() client.newCall(request).execute() val recordedRequest = server.takeRequest() assertThat(recordedRequest.body.readUtf8()).isEqualTo("ABC")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 27.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt
assertBytes(0xbe) assertThat(hpackWriter!!.headerCount).isEqualTo(1) } @Test fun doNotIndexPseudoHeaders() { hpackWriter!!.writeHeaders(headerEntries(":method", "PUT")) assertBytes(0x02, 3, 'P'.code, 'U'.code, 'T'.code) assertThat(hpackWriter!!.headerCount).isEqualTo(0) hpackWriter!!.writeHeaders(headerEntries(":path", "/okhttp"))
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 38.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/HttpUrl.kt
return input == ".." || input.equals("%2e.", ignoreCase = true) || input.equals(".%2e", ignoreCase = true) || input.equals("%2e%2e", ignoreCase = true) } /** * Cuts this string up into alternating parameter names and values. This divides a query string * like `subject=math&easy&problem=5-2=3` into the list `["subject", "math", "easy", null,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 63.5K bytes - Viewed (1) -
okhttp-android/src/main/baseline-prof.txt
HSPLandroidx/arch/core/internal/SafeIterableMap;-><init>()V HSPLandroidx/arch/core/internal/SafeIterableMap;->get(Ljava/lang/Object;)Landroidx/arch/core/internal/SafeIterableMap$Entry; HSPLandroidx/arch/core/internal/SafeIterableMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Landroidx/arch/core/internal/SafeIterableMap$Entry; HSPLandroidx/arch/core/internal/SafeIterableMap;->putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Mar 21 11:22:00 GMT 2022 - 127.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt
) taskFaker.advanceUntil(540.ms) assertEvents( "plan 2 TCP connect canceled", ) taskFaker.assertNoMoreTasks() } /** * This test puts several connections in flight that all fail at approximately the same time. It * confirms the fast fallback implements these invariants: * * * if there's no TCP connect in flight, start one.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 24 04:40:49 GMT 2024 - 20.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/RequestBody.kt
fileSystem.source(this@asRequestBody).use { source -> sink.writeAll(source) } } } } @JvmStatic @Deprecated( message = "Moved to extension function. Put the 'content' argument first to fix Java", replaceWith = ReplaceWith( expression = "content.toRequestBody(contentType)", imports = ["okhttp3.RequestBody.Companion.toRequestBody"],
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Jan 25 14:41:37 GMT 2024 - 9.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallKotlinTest.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 8.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/PublicInternalApiTest.kt
@Test fun permitsRequestBody() { assertTrue(permitsRequestBody("POST")) assertFalse(permitsRequestBody("GET")) } @Test fun requiresRequestBody() { assertTrue(requiresRequestBody("PUT")) assertFalse(requiresRequestBody("GET")) } @Test fun hasBody() { val request = Request.Builder().url("http://example.com").build() val response = Response.Builder().code(200)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.5K bytes - Viewed (0) -
samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java
if (mockWebServer == null) throw new IllegalStateException(); ByteString state = randomToken(); synchronized (this) { listeners.put(state, listener); } return slackApi.authorizeUrl(scopes, redirectUrl(), state, team); } private ByteString randomToken() { byte[] bytes = new byte[16]; secureRandom.nextBytes(bytes);
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Aug 12 07:26:27 GMT 2021 - 3.8K bytes - Viewed (0)