Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for devserver (0.17 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.mockwebserver.MockResponse
    import okhttp3.mockwebserver.MockWebServer
    import okhttp3.tls.HandshakeCertificates
    import okhttp3.tls.internal.TlsUtil
    
    class DevServer {
      val handshakeCertificates = TlsUtil.localhost()
    
      val server =
        MockWebServer().apply {
          useHttps(handshakeCertificates.sslSocketFactory(), false)
    
          enqueue(
            MockResponse()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_4x.md

        private development environments that only carry test data. Prefer this over creating an
        all-trusting `TrustManager` because only hosts on the allowlist are insecure. From
        [our DevServer sample][dev_server]:
    
        ```kotlin
        val clientCertificates = HandshakeCertificates.Builder()
            .addPlatformTrustedCertificates()
            .addInsecureHost("localhost")
            .build()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. mockwebserver-junit4/api/mockwebserver3-junit4.api

    public final class mockwebserver3/junit4/MockWebServerRule : org/junit/rules/ExternalResource {
    	public static final field Companion Lmockwebserver3/junit4/MockWebServerRule$Companion;
    	public fun <init> ()V
    	public final fun getServer ()Lmockwebserver3/MockWebServer;
    }
    
    public final class mockwebserver3/junit4/MockWebServerRule$Companion {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Feb 26 19:17:33 GMT 2022
    - 346 bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        return clientTestRule
      }
    
      @BeforeEach
      fun setUp(webServer: MockWebServer) {
        this.webServer = webServer
        platform.assumeNotOpenJSSE()
      }
    
      @AfterEach
      @Throws(InterruptedException::class)
      fun tearDown() {
        clientListener.assertExhausted()
      }
    
      @Test
      fun textMessage() {
        webServer.enqueue(
          MockResponse.Builder()
            .webSocketUpgrade(serverListener)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  5. docs/features/connections.md

    They're also concrete: each URL identifies a specific path (like `/square/okhttp`) and query (like `?q=sharks&lang=en`). Each webserver hosts many URLs.
    
    ### [Addresses](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-address/)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Feb 21 03:33:59 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  6. docs/features/calls.md

    If a conditional GET was successful, responses from the network and cache are merged as directed by the spec.
    
    ## Follow-up Requests
    
    When your requested URL has moved, the webserver will return a response code like `302` to indicate the document’s new URL. OkHttp will follow the redirect to retrieve a final response.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

    import okio.ByteString
    
    /**
     * A one-shot stream from the origin server to the client application with the raw bytes of the
     * response body. Each response body is supported by an active connection to the webserver. This
     * imposes both obligations and limits on the client application.
     *
     * ### The response body must be closed.
     *
     * Each response body is backed by a limited resource like a socket (live network responses) or
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * authentication.
     *
     * ### Host
     *
     * The host identifies the webserver that serves the URL's resource. It is either a hostname like
     * `square.com` or `localhost`, an IPv4 address like `192.168.0.1`, or an IPv6 address like `::1`.
     *
     * Usually a webserver is reachable with multiple identifiers: its IP addresses, registered
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  9. docs/features/interceptors.md

    ### Choosing between application and network interceptors
    
    Each interceptor chain has relative merits.
    
    **Application interceptors**
    
    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)
  10. docs/security/security.md

    The best way to verify artifacts is [automatically with Gradle][gradle_verification].
    
    
    [gradle_verification]: https://docs.gradle.org/current/userguide/dependency_verification.html#sec:signature-verification
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 27 10:19:17 GMT 2022
    - 1.4K bytes
    - Viewed (0)
Back to top