- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 62 for requestBody (0.35 sec)
-
okhttp/src/test/java/okhttp3/DuplexTest.kt
) call.execute().use { response -> val requestBody = (call.request().body as AsyncRequestBody?)!!.takeSink() requestBody.writeUtf8("request A\n") requestBody.flush() val responseBody = response.body.source() assertThat(responseBody.readUtf8Line()) .isEqualTo("response B") requestBody.writeUtf8("request C\n") requestBody.flush() assertThat(responseBody.readUtf8Line())
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 23.9K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
val requestBody = request.body val connection = chain.connection() var requestStartMessage = ("--> ${request.method} ${redactUrl(request.url)}${if (connection != null) " " + connection.protocol() else ""}") if (!logHeaders && requestBody != null) { requestStartMessage += " (${requestBody.contentLength()}-byte body)" }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 11.2K bytes - Viewed (1) -
src/test/java/org/codelibs/fess/it/search/SearchApiTests.java
requestBody.put("permissions", "{role}guest"); requestBody.put("available", true); requestBody.put("sort_order", 0); createFileConfig(requestBody); } private static void createJob() { final Map<String, Object> requestBody = new HashMap<>(); requestBody.put("name", NAME_PREFIX + "Scheduler"); requestBody.put("target", "all");
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 18.6K bytes - Viewed (1) -
src/test/java/org/codelibs/fess/it/CrawlTestBase.java
protected static void createJob(final Map<String, Object> requestBody) { checkMethodBase(requestBody).put("/api/admin/scheduler/setting").then().body("response.created", equalTo(true)) .body("response.status", equalTo(0)); } protected static void startJob(final String namePrefix) { for (int i = 0; i < 30; i++) { final Map<String, Object> requestBody = new HashMap<>();
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 9.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
@Test fun multipartBodyPart() { val requestBody: RequestBody = "".toRequestBody(null) var part: MultipartBody.Part = MultipartBody.Part.create(null, requestBody) part = MultipartBody.Part.create(headersOf(), requestBody) part = MultipartBody.Part.create(requestBody) part = MultipartBody.Part.createFormData("", "") part = MultipartBody.Part.createFormData("", "", requestBody)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 46.5K bytes - Viewed (4) -
okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
return true } private fun requestIsOneShot( e: IOException, userRequest: Request, ): Boolean { val requestBody = userRequest.body return (requestBody != null && requestBody.isOneShot()) || e is FileNotFoundException } private fun isRecoverable( e: IOException, requestSendStarted: Boolean, ): Boolean {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:24:48 GMT 2024 - 12.1K bytes - Viewed (4) -
okhttp/src/main/kotlin/okhttp3/MultipartBody.kt
level = DeprecationLevel.ERROR, ) fun body(): RequestBody = body companion object { @JvmStatic fun create(body: RequestBody): Part = create(null, body) @JvmStatic fun create( headers: Headers?, body: RequestBody, ): Part { require(headers?.get("Content-Type") == null) { "Unexpected header: Content-Type" }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Request.kt
open fun head(): Builder = commonHead() 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,
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-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
import okhttp3.MediaType.Companion.toMediaType import okhttp3.OkHttpClient import okhttp3.Protocol import okhttp3.RecordingHostnameVerifier import okhttp3.Request import okhttp3.RequestBody import okhttp3.RequestBody.Companion.gzip import okhttp3.RequestBody.Companion.toRequestBody import okhttp3.logging.HttpLoggingInterceptor.Level import okhttp3.testing.PlatformRule import okio.Buffer import okio.BufferedSink
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 37.6K bytes - Viewed (0) -
docs/recipes.md
= MediaType.parse("text/x-markdown; charset=utf-8"); private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { RequestBody requestBody = new RequestBody() { @Override public MediaType contentType() { return MEDIA_TYPE_MARKDOWN; } @Override public void writeTo(BufferedSink sink) throws IOException {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Feb 18 08:52:22 GMT 2022 - 40.2K bytes - Viewed (1)