- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 155 for Post (0.31 sec)
-
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
* * Example: * ``` * --> POST /greeting http/1.1 (3-byte body) * * <-- 200 OK (22ms, 6-byte body) * ``` */ BASIC, /** * Logs request and response lines and their respective headers. * * Example: * ``` * --> POST /greeting http/1.1 * Host: example.com * Content-Type: plain/text
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 11.2K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
assertThat(calls.size).isEqualTo(1) val url = server.url("/").toUrl() val call = calls[0] assertThat(call).contains("host=" + url.host) assertThat(call).contains("port=" + url.port) assertThat(call).contains("site=" + url.host) assertThat(call).contains("url=$url") assertThat(call).contains("type=" + java.net.Authenticator.RequestorType.SERVER)
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
docs/changelogs/changelog_4x.md
detecting the TLS capabilities of the host platform. * Fix: Don't crash in `HttpUrl.topPrivateDomain()` when the hostname is malformed. * Fix: Don't attempt Brotli decompression if the response body is empty. ## Version 4.7.2 _2020-05-20_ * Fix: Don't crash inspecting whether the host platform is JVM or Android. With 4.7.0 and 4.7.1 we
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/Main.kt
class Main : CliktCommand(name = NAME, help = "A curl for the next-generation web.") { val method: String? by option("-X", "--request", help = "Specify request command to use") val data: String? by option("-d", "--data", help = "HTTP POST data") val headers: List<String>? by option("-H", "--header", help = "Custom header to pass to server").multiple()
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.7K bytes - Viewed (1) -
mockwebserver/README.md
``` #### RecordedRequest Verify requests by their method, path, HTTP version, body, and headers. ```java RecordedRequest request = server.takeRequest(); assertEquals("POST /v1/chat/send HTTP/1.1", request.getRequestLine()); assertEquals("application/json; charset=utf-8", request.getHeader("Content-Type")); assertEquals("{}", request.getBody().readUtf8()); ``` #### Dispatcher
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sun Dec 17 15:34:10 GMT 2023 - 5K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/DuplexTest.kt
} @Test @Throws(IOException::class) fun http1DoesntSupportDuplex() { val call = client.newCall( Request.Builder() .url(server.url("/")) .post(AsyncRequestBody()) .build(), ) assertFailsWith<ProtocolException> { call.execute() } } @Test fun trueDuplexClientWritesFirst() { enableProtocol(Protocol.HTTP_2)
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 23.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Dns.kt
*/ package okhttp3 import java.net.InetAddress import java.net.UnknownHostException import okhttp3.Dns.Companion.SYSTEM /** * A domain name service that resolves IP addresses for host names. Most applications will use the * [system DNS service][SYSTEM], which is the default. Some applications may provide their own * implementation to use a different DNS server, to prefer IPv6 addresses, to prefer IPv4 addresses,
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HttpUrlJvmTest.kt
assertThat("http://host/a\u0000b".toHttpUrl().toUri()) .isEqualTo(URI("http://host/a%00b")) assertThat("http://host/a\u0080b".toHttpUrl().toUri()) .isEqualTo(URI("http://host/a%C2%80b")) assertThat("http://host/a\u009fb".toHttpUrl().toUri()) .isEqualTo(URI("http://host/a%C2%9Fb")) // Percent-encoded in the query. assertThat("http://host/?a\u0000b".toHttpUrl().toUri()) .isEqualTo(URI("http://host/?a%00b"))
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HttpUrlTest.kt
.isEqualTo(parse("http://host/path")) assertThat(parse("http:\\\\host/path")) .isEqualTo(parse("http://host/path")) assertThat(parse("http:///host/path")) .isEqualTo(parse("http://host/path")) assertThat(parse("http:\\//host/path")) .isEqualTo(parse("http://host/path")) assertThat(parse("http:/\\/host/path")) .isEqualTo(parse("http://host/path"))
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 67.9K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt
Request( url = "https://url-host.com:${server.port}/".toHttpUrl(), headers = headersOf("Host", "header-host"), ), ) val response = call.execute() assertThat(response.isSuccessful).isTrue() val recordedRequest = server.takeRequest() assertThat(recordedRequest.requestUrl!!.host).isEqualTo("header-host")
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.9K bytes - Viewed (1)