Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for addReader (0.3 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

      }
    
      @Throws(Exception::class)
      private fun successfulExtensions(extensionsHeader: String) {
        webServer.enqueue(
          MockResponse.Builder()
            .addHeader("Sec-WebSocket-Extensions", extensionsHeader)
            .webSocketUpgrade(serverListener)
            .build(),
        )
        val client: WebSocket = newWebSocket()
        clientListener.assertOpen()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Request.kt

         *
         * Note that for some headers including `Content-Length` and `Content-Encoding`,
         * OkHttp may replace [value] with a header derived from the request body.
         */
        open fun addHeader(
          name: String,
          value: String,
        ) = commonAddHeader(name, value)
    
        /** Removes all headers named [name] on this builder. */
        open fun removeHeader(name: String) = commonRemoveHeader(name)
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:17:44 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceTest.groovy

            if (cacheRef == null) {
                buildCacheDescriber = new NoopBuildCacheDescriber()
                cacheRef = new DefaultHttpBuildCacheServiceFactory(new DefaultSslContextFactory(), { it.addHeader("X-Gradle-Version", "3.0") }, httpClientHelperFactory)
                    .createBuildCacheService(this.config, buildCacheDescriber) as HttpBuildCacheService
            }
            cacheRef
        }
    
        def setup() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt

        client =
          client.newBuilder()
            .connectionPool(ConnectionPool(0, 5, TimeUnit.SECONDS))
            .build()
        server.enqueue(
          MockResponse.Builder()
            .code(301)
            .addHeader("Location: /b")
            .bodyDelay(1, TimeUnit.SECONDS)
            .body("a")
            .build(),
        )
        server.enqueue(MockResponse(body = "b"))
        val request = Request(server.url("/"))
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  5. platforms/software/resources-gcs/src/integTest/groovy/org/gradle/integtests/resource/gcs/fixtures/GcsServer.groovy

                    if (httpStub.request.body) {
                        httpStub.request.body.call(request.getInputStream())
                    }
                    httpStub.response?.headers?.each {
                        response.addHeader(it.key, it.value instanceof Closure ? it.value.call().toString() : it.value.toString())
                    }
                    response.setStatus(httpStub.response.status)
                    if (httpStub.response?.body) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy

            }
    
            response.setContentType(contentType ?: new MimeTypes().getMimeByExtension(file.name).toString())
            if (sendSha1Header) {
                response.addHeader("X-Checksum-Sha1", Hashing.sha1().hashBytes(content).toZeroPaddedString(Hashing.sha1().hexDigits))
            }
    
            addEtag(response, content, etags)
            response.outputStream << content
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Response.kt

          value: String,
        ) = commonHeader(name, value)
    
        /**
         * Adds a header with [name] to [value]. Prefer this method for multiply-valued
         * headers like "Set-Cookie".
         */
        open fun addHeader(
          name: String,
          value: String,
        ) = commonAddHeader(name, value)
    
        /** Removes all headers named [name] on this builder. */
        open fun removeHeader(name: String) = commonRemoveHeader(name)
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/fixtures/S3Server.groovy

                    if (httpStub.request.body) {
                        httpStub.request.body.call(request.getInputStream())
                    }
                    httpStub.response?.headers?.each {
                        response.addHeader(it.key, it.value instanceof Closure ? it.value.call().toString() : it.value.toString())
                    }
                    response.setStatus(httpStub.response.status)
                    if (httpStub.response?.body) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 22.4K bytes
    - Viewed (0)
Back to top