- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 77 for Allain (0.17 sec)
-
okhttp/src/test/java/okhttp3/CommonRequestBodyTest.kt
class CommonRequestBodyTest { @Test fun correctContentType() { val body = "Body" val requestBody = body.toRequestBody(MediaType("text/plain", "text", "plain", arrayOf())) val contentType = requestBody.contentType()!! assertThat(contentType.mediaType).isEqualTo("text/plain; charset=utf-8") assertThat(contentType.parameter("charset")).isEqualTo("utf-8") }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 1.1K bytes - Viewed (0) -
docs/en/docs/async.md
instead of being called directly (as it would block the server). If you are coming from another async framework that does not work in the way described above and you are used to defining trivial compute-only *path operation functions* with plain `def` for a tiny performance gain (about 100 nanoseconds), please note that in **FastAPI** the effect would be quite opposite. In these cases, it's better to use `async def` unless your *path operation functions* use code that performs blocking <abbr...
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23K bytes - Viewed (0) -
docs/en/docs/img/deployment/https/https07.drawio
</mxCell> <mxCell id="85" value="<span style="font-family: &#34;roboto&#34; ; font-size: 24px">Plain response from: someapp.example.com</span>" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;strokeColor=#9673a6;strokeWidth=3;fillColor=#e1d5e7;" parent="1" vertex="1">
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 18.7K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt
client.newRequest(server.url("/").toUri()) .header("Accept", "text/plain") val response = request.send() assertThat(response.status).isEqualTo(200) assertThat(response.contentAsString).isEqualTo("hello, Jetty HTTP Client") val recorded = server.takeRequest() assertThat(recorded.headers["Accept"]).isEqualTo("text/plain") assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
.assertNoMoreLogs() } private fun request(): Request.Builder { return Request.Builder().url(url) } companion object { private val PLAIN = "text/plain".toMediaType() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 10.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/EventListenerTest.kt
requestBodySuccess( "Hello".toRequestBody("text/plain".toMediaType()), CoreMatchers.equalTo(5L), CoreMatchers.equalTo(19L), ) } @Test fun requestBodySuccessHttp() { requestBodySuccess( "Hello".toRequestBody("text/plain".toMediaType()), CoreMatchers.equalTo(5L), CoreMatchers.equalTo(19L), ) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 56.9K bytes - Viewed (0) -
docs/features/interceptors.md
INFO: Sending request http://www.publicobject.com/helloworld.txt on null User-Agent: OkHttp Example INFO: Received response for https://publicobject.com/helloworld.txt in 1179.7ms Server: nginx/1.4.6 (Ubuntu) Content-Type: text/plain Content-Length: 1759 Connection: keep-alive ``` We can see that we were redirected because `response.request().url()` is different from `request.url()`. The two log statements log two different URLs.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 8.1K bytes - Viewed (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt
} private fun response( url: String, bodyHex: ByteString, fn: Response.Builder.() -> Unit = {}, ): Response { return Response.Builder() .body(bodyHex.toResponseBody("text/plain".toMediaType())) .code(200) .message("OK") .request(Request.Builder().url(url).build()) .protocol(Protocol.HTTP_2) .apply(fn) .build() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.2K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.11.md
### SIG vSphere * Added a mechanism in vSphere Cloud Provider to get credentials from Kubernetes secrets, rather than the plain text `vsphere.conf` file.([#63902](https://github.com/kubernetes/kubernetes/pull/63902), [@abrarshivani](https://github.com/abrarshivani))
Plain Text - Registered: Fri May 03 09:05:14 GMT 2024 - Last Modified: Thu Feb 06 06:04:15 GMT 2020 - 328.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallKotlinTest.kt
connection!!.idleAtNs -= IDLE_CONNECTION_HEALTHY_NS Thread.sleep(250) val requestB = Request( url = server.url("/"), body = "b".toRequestBody("text/plain".toMediaType()), ) val responseB = client.newCall(requestB).execute() assertThat(responseB.body.string()).isEqualTo("b") assertThat(server.takeRequest().sequenceNumber).isEqualTo(0) }
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)