- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 185 for Requestbodys (0.07 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt
open fun head(): Builder = method("HEAD", null) open fun post(body: RequestBody): Builder = method("POST", body) @JvmOverloads open fun delete(body: RequestBody? = RequestBody.EMPTY): Builder = method("DELETE", body) open fun put(body: RequestBody): Builder = method("PUT", body) open fun patch(body: RequestBody): Builder = method("PATCH", body) /**Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Oct 30 13:46:58 GMT 2025 - 14.7K bytes - Click Count (1) -
tests/test_modules_same_name_body/test_main.py
}, }, }, "summary": "Compute", "operationId": "compute_a_compute_post", "requestBody": { "content": { "application/json": { "schema": {Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Feb 27 14:42:41 GMT 2025 - 5.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/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" }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 10.9K bytes - Click Count (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 {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 30 17:01:12 GMT 2025 - 47.8K bytes - Click Count (0) -
tests/test_request_body_parameters_media_type.py
from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() media_type = "application/vnd.api+json" # NOTE: These are not valid JSON:API resources # but they are fine for testing requestBody with custom media_type class Product(BaseModel): name: str price: float class Shop(BaseModel): name: str @app.post("/products")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 6.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt
.build(), ) val requestBody = AsyncRequestBody() val call = client.newCall( Request( url = server.url("/"), body = requestBody, ), ) call.execute().use { response -> assertThat(response.body.string()).isEqualTo("abc") val requestBodyOut = requestBody.takeSink() assertFailsWith<IOException> {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MultipartBodyTest.kt
body.writeTo(buffer) assertThat(body.contentLength()).isEqualTo(buffer.size) assertThat(buffer.readUtf8()).isEqualTo(expected) } fun String.toOneShotRequestBody(): RequestBody = object : RequestBody() { override fun contentType() = null override fun isOneShot(): Boolean = true override fun contentLength() = ******@****.***8Size()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 10.5K bytes - Click Count (0) -
tests/test_tuples.py
"/model-with-tuple/": { "post": { "summary": "Post Model With Tuple", "operationId": "post_model_with_tuple_model_with_tuple__post", "requestBody": { "content": { "application/json": { "schema": {"$ref": "#/components/schemas/ItemGroup"} }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 9.8K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/AsyncRequestBody.kt
import java.util.concurrent.TimeUnit.SECONDS import okhttp3.MediaType import okhttp3.RequestBody import okio.BufferedSink import org.junit.jupiter.api.Assertions.assertTrue /** A duplex request body that keeps the provided sinks so they can be written to later. */ class AsyncRequestBody : RequestBody() { private val requestBodySinks: BlockingQueue<BufferedSink> = LinkedBlockingQueue()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.5K bytes - Click Count (0) -
tests/test_tutorial/test_request_files/test_tutorial001_02.py
"paths": { "/files/": { "post": { "summary": "Create File", "operationId": "create_file_files__post", "requestBody": { "content": { "multipart/form-data": { "schema": {
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.4K bytes - Click Count (0)