Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 152 for _new (0.12 sec)

  1. .github/CONTRIBUTING.md

    - Get working code on a personal branch with tests before you submit a PR.
    - OkHttp is a small and light dependency.  Don't introduce new dependencies or major new functionality.
    - OkHttp targets the intersection of RFC correct *and* widely implemented.  Incorrect implementations that are very widely implemented e.g. a bug in Apache, Nginx, Google, Firefox should also be handled.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 17 04:16:26 GMT 2019
    - 1.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

          return buffer.asResponseBody(finalContentType, buffer.size)
        }
    
        /** Returns a new response body that transmits this byte array. */
        @JvmStatic
        @JvmName("create")
        fun ByteArray.toResponseBody(contentType: MediaType? = null): ResponseBody = commonToResponseBody(contentType)
    
        /** Returns a new response body that transmits this byte string. */
        @JvmStatic
        @JvmName("create")
    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)
  3. okhttp/src/main/kotlin/okhttp3/ConnectionListener.kt

     * limitations under the License.
     */
    package okhttp3
    
    import okio.IOException
    
    /**
     * Listener for connection events. Extend this class to monitor the new connections and closes.
     *
     * All event methods must execute fast, without external locking, cannot throw exceptions,
     * attempt to mutate the event parameters, or be reentrant back into the client.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

            body = "This page has moved!",
          ),
        )
        server.enqueue(MockResponse(body = "This is the new location!"))
        val call = client.newCall(Request(server.url("/")))
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("This is the new location!")
        val request1 = server.takeRequest()
        assertThat(request1.path).isEqualTo("/")
        val request2 = server.takeRequest()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

      private var nextQueueName = 10000
      private var coordinatorWaiting = false
      private var coordinatorWakeUpAt = 0L
    
      /**
       * When we need a new thread to run tasks, we call [Backend.execute]. A few microseconds later we
       * expect a newly-started thread to call [Runnable.run]. We shouldn't request new threads until
       * the already-requested ones are in service, otherwise we might create more threads than we need.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  6. okhttp-hpacktests/README.md

    initialize them, you must run:
    
        git submodule init
        git submodule update
    
    TODO
    ----
    
     * Add maven goal to avoid manual call to git submodule init.
     * Make hpack-test-case update itself from git, and run new tests.
     * Add maven goal to generate stories and a pull request to hpack-test-case
       to have others validate our output.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Dec 15 16:59:53 GMT 2014
    - 578 bytes
    - Viewed (0)
  7. mockwebserver-junit4/README.md

    testImplementation("com.squareup.okhttp3:mockwebserver3-junit4:4.12.0")
    ```
    
    Then in tests annotated `@org.junit.Test`, you may declare a field with the `@Rule` annotation:
    
    ```
    @Rule public final MockWebServerRule serverRule = new MockWebServerRule();
    ```
    
    The `serverRule` field has a `server` field. It is an instance of `MockWebServer`. That instance
    will be shut down automatically after the test runs.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 707 bytes
    - Viewed (1)
  8. docs/features/connections.md

     3. If it doesn't find a connection in the pool, it selects a **route** to attempt. This usually means making a DNS request to get the server's IP addresses. It then selects a TLS version and proxy server if necessary.
    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)
  9. mockwebserver-junit4/src/main/kotlin/mockwebserver3/junit4/MockWebServerRule.kt

     *
     * In Java JUnit 4 tests (ie. tests annotated `@org.junit.Test`), use this by defining a field with
     * the `@Rule` annotation:
     *
     * ```java
     * @Rule public final MockWebServerRule serverRule = new MockWebServerRule();
     * ```
     *
     * For Kotlin the `@JvmField` annotation is also necessary:
     *
     * ```kotlin
     * @JvmField @Rule val serverRule = MockWebServerRule()
     * ```
     */
    @ExperimentalOkHttpApi
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 1.8K bytes
    - Viewed (1)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

          payload2: Int,
        )
    
        /**
         * The peer tells us to stop creating streams. It is safe to replay streams with
         * `ID > lastGoodStreamId` on a new connection.  In- flight streams with
         * `ID <= lastGoodStreamId` can only be replayed on a new connection if they are idempotent.
         *
         * @param lastGoodStreamId the last stream ID the peer processed before sending this message. If
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
Back to top