Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 105 for and (0.16 sec)

  1. container-tests/src/test/java/okhttp3/containers/BasicMockServerTest.kt

     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.containers
    
    import assertk.assertThat
    import assertk.assertions.contains
    import javax.net.ssl.TrustManagerFactory
    import javax.net.ssl.X509TrustManager
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.connection
    
    import assertk.assertThat
    import assertk.assertions.isEmpty
    import assertk.assertions.isEqualTo
    import assertk.assertions.isFalse
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  3. CHANGELOG.md

        the implementation trade-offs. We can't use our HTTP client engine on Kotlin/JS, and we weren't
        prepared to build a TLS API for Kotlin/Native.
    
        We'd prefer a multiplatform HTTP client API that's backed by OkHttp on Android and JVM, and
        other engines on other platforms. [Ktor] does this pretty well today!
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

    /**
     * Factory for [calls][Call], which can be used to send HTTP requests and read their responses.
     *
     * ## OkHttpClients Should Be Shared
     *
     * OkHttp performs best when you create a single `OkHttpClient` instance and reuse it for all of
     * your HTTP calls. This is because each client holds its own connection pool and thread pools.
     * Reusing connections and threads reduces latency and saves memory. Conversely, creating a client
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/SocksProxy.kt

        val version = fromSource.readByte() and 0xff
        if (version != VERSION_5) throw ProtocolException("unexpected version: $version")
    
        val command = fromSource.readByte() and 0xff
    
        val reserved = fromSource.readByte() and 0xff
        if (reserved != 0) throw ProtocolException("unexpected reserved: $reserved")
    
        val addressType = fromSource.readByte() and 0xff
        val toAddress =
          when (addressType) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

        // currently ignores a HTTP-date, and assumes any non int 0 is a delay
        if (header.matches("\\d+".toRegex())) {
          return Integer.valueOf(header)
        }
        return Integer.MAX_VALUE
      }
    
      companion object {
        /**
         * How many redirects and auth challenges should we attempt? Chrome follows 21 redirects; Firefox,
         * curl, and wget follow 20; Safari follows 16; and HTTP/1.0 recommends 5.
         */
    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)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

          writer.goAway(lastGoodStreamId, statusCode, EMPTY_BYTE_ARRAY)
        }
      }
    
      /**
       * Closes this connection. This cancels all open streams and unanswered pings. It closes the
       * underlying input and output streams and shuts down internal task queues.
       */
      override fun close() {
        close(ErrorCode.NO_ERROR, ErrorCode.CANCEL, null)
      }
    
      internal fun close(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      private var writer: WebSocketWriter? = null
    
      /** Used for writes, pings, and close timeouts. */
      private var taskQueue = taskRunner.newQueue()
    
      /** Names this web socket for observability and debugging. */
      private var name: String? = null
    
      /** The streams held by this web socket. This is closed when both reader and writer are closed. */
      private var streams: Streams? = null
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cookie.kt

       *
       *  * **Embedded resources like images and iframes** in browsers use the context as the page in
       *    the address bar and the subject is the URL of an embedded resource.
       *
       *  * **Potentially-destructive navigations such as HTTP POST calls** use the context as the page
       *    originating the navigation, and the subject is the page being navigated to.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

      }
    
      /**
       * Returns the connection already attached to the call if it's eligible for a new exchange.
       *
       * If the call's connection exists and is eligible for another exchange, it is returned. If it
       * exists but cannot be used for another exchange, it is closed and this returns null.
       */
      private fun planReuseCallConnection(): ReusePlan? {
        // This may be mutated by releaseConnectionNoEvents()!
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top