Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 33 of 33 for addReader (0.11 sec)

  1. 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)
  2. 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)
  3. 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