- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 178 for Dost (0.12 sec)
-
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 May 03 11:42:14 GMT 2024 - Last Modified: Sun Dec 17 15:34:10 GMT 2023 - 5K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt
this.associatedStreamId = associatedStreamId this.headerBlock = headerBlock } override fun alternateService( streamId: Int, origin: String, protocol: ByteString, host: String, port: Int, maxAge: Long, ) { throw UnsupportedOperationException() } } companion object {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 8.7K bytes - Viewed (0) -
docs/features/events.md
.build(); client.newCall(newYorkTimesRequest).enqueue(new Callback() { ... }); ``` Running this race over home WiFi shows the Times (`0002`) completes just slightly sooner than the Post (`0001`): ``` 0001 https://www.washingtonpost.com/ 0001 0.000 callStart 0002 https://www.nytimes.com/ 0002 0.000 callStart 0002 0.010 dnsStart 0001 0.013 dnsStart 0001 0.022 dnsEnd
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 7.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt
private val isBouncyCastlePreferred: Boolean get() { val preferredProvider = Security.getProviders()[0].name return "BC" == preferredProvider } /** Attempt to match the host runtime to a capable Platform implementation. */ private fun findPlatform(): Platform = if (isAndroid) { findAndroidPlatform() } else { findJvmPlatform() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 9.8K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt
* This class contains a Kotlin implementation of the pseudocode specified by RFC 3492. It includes * direct translation of the pseudocode presented there. * * Partner this class with [UTS #46] to implement IDNA2008 [RFC 5890] like most browsers do. * * [RFC 3492]: https://datatracker.ietf.org/doc/html/rfc3492 * [RFC 5890]: https://datatracker.ietf.org/doc/html/rfc5890 * [UTS #46]: https://www.unicode.org/reports/tr46/ */ object Punycode {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 03 03:04:50 GMT 2024 - 8.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt
*/ val upstreamBuffer = Buffer() /** True if there are no further bytes to read from [upstream]. Guarded by this. */ var complete = (upstream == null) /** The most recently read bytes from [upstream]. This is a suffix of [file]. Guarded by this. */ val buffer = Buffer() /** * Reference count of the number of active sources reading this stream. When decremented to 0
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.8K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
networkLogs .assertLogEqual("--> POST $url http/1.1") .assertLogEqual("Content-Type: text/plain; charset=utf-8") .assertLogEqual("Content-Length: 3") .assertLogEqual("Host: $host") .assertLogEqual("Connection: Keep-Alive") .assertLogEqual("Accept-Encoding: gzip") .assertLogMatch(Regex("""User-Agent: okhttp/.+""")) .assertLogEqual("--> END POST")
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) -
okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt
private const val ALT_IPA_NAME = 7 override fun verify( host: String, session: SSLSession, ): Boolean { return if (!host.isAscii()) { false } else { try { verify(host, session.peerCertificates[0] as X509Certificate) } catch (_: SSLException) { false } } } fun verify( host: String, certificate: X509Certificate, ): Boolean {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 7.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cache.kt
taskRunner: TaskRunner, ) : Closeable, Flushable { /** Create a cache of at most [maxSize] bytes in [directory]. */ constructor( fileSystem: FileSystem, directory: Path, maxSize: Long, ) : this( directory, maxSize, fileSystem, TaskRunner.INSTANCE, ) /** Create a cache of at most [maxSize] bytes in [directory]. */ constructor(directory: File, maxSize: Long) : this(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 26.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
assertThat(recordedRequest.method).isEqualTo("POST") assertThat(recordedRequest.body.readUtf8()).isEqualTo("def") assertThat(recordedRequest.headers["Content-Length"]).isEqualTo("3") assertThat(recordedRequest.headers["Content-Type"]).isEqualTo("text/plain; charset=utf-8") } @Test fun post_HTTPS() { enableTls() post() } @Test fun post_HTTP_2() { enableProtocol(Protocol.HTTP_2)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0)