Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt

          response("https://httpbin.org/brotli", s.decodeHex()) {
            header("Content-Encoding", "br")
          }
    
        val uncompressed = uncompress(response)
    
        val responseString = uncompressed.body.string()
        assertThat(responseString).contains("\"brotli\": true,")
        assertThat(responseString).contains("\"Accept-Encoding\": \"br\"")
      }
    
      @Test
      fun testUncompressGzip() {
        val s =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/util/InputStreamThread.java

            this.bufferSize = bufferSize;
            this.outputCallback = outputCallback;
    
            br = new BufferedReader(new InputStreamReader(is, charset));
        }
    
        @Override
        public void run() {
            boolean running = true;
            while (running) {
                try {
                    final String line = br.readLine();
                    if (line == null) {
                        running = false;
                    } else {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  3. okhttp-brotli/src/main/kotlin/okhttp3/brotli/BrotliInterceptor.kt

    package okhttp3.brotli
    
    import okhttp3.Interceptor
    import okhttp3.Response
    import okhttp3.brotli.internal.uncompress
    
    /**
     * Transparent Brotli response support.
     *
     * Adds Accept-Encoding: br to request and checks (and strips) for Content-Encoding: br in
     * responses.  n.b. this replaces the transparent gzip compression in BridgeInterceptor.
     */
    object BrotliInterceptor : Interceptor {
      override fun intercept(chain: Interceptor.Chain): Response {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Log.java

         * The error's stacktrace will be output when this error level is enabled.
         *
         * @param content
         * @param error
         */
        void debug(CharSequence content, Throwable error);
    
        /**
         * Send an exception to the user in the <b>debug</b> error level.<br>
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 23:54:53 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  5. okhttp-brotli/src/main/kotlin/okhttp3/brotli/internal/Uncompress.kt

        return response
      }
      val body = response.body
      val encoding = response.header("Content-Encoding") ?: return response
    
      val decompressedSource =
        when {
          encoding.equals("br", ignoreCase = true) ->
            BrotliInputStream(body.source().inputStream()).source().buffer()
          encoding.equals("gzip", ignoreCase = true) ->
            GzipSource(body.source()).buffer()
          else -> return response
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 13:19:01 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/mylasta/mail/EsStatusPostcard.java

         * Even if empty string, treated as empty plainly. So "IF pmb != null" is false if empty.
         * @param hostname The parameter value of hostname. (NotNull)
         */
        public void setHostname(String hostname) {
            registerVariable("hostname", hostname);
        }
    
        /**
         * Set the value of clustername, used in parameter comment. <br>
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

            private BufferedReader br;
    
            private final List<String> list = new LinkedList<>();
    
            private final int maxLineBuffer;
    
            public InputStreamThread(final InputStream is, final String charset, final int maxOutputLineBuffer) {
                try {
                    br = new BufferedReader(new InputStreamReader(is, charset));
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  8. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliBombTest.kt

      /** https://github.com/square/okhttp/issues/7738 */
      @Test
      fun testDecompressBomb() {
        val response =
          Response.Builder()
            .code(200)
            .message("OK")
            .header("Content-Encoding", "br")
            .request(Request.Builder().url("https://example.com/").build())
            .body(readBrotli10G().toResponseBody())
            .protocol(Protocol.HTTP_2)
            .build()
    
        val uncompressed = uncompress(response)
    
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 29 22:50:20 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  9. cmd/bitrot_test.go

    		t.Fatal(err)
    	}
    	if _, err = reader.ReadAt(b, 20); err != nil {
    		t.Fatal(err)
    	}
    	if _, err = reader.ReadAt(b[:5], 30); err != nil {
    		t.Fatal(err)
    	}
    	if br, ok := reader.(io.Closer); ok {
    		br.Close()
    	}
    }
    
    func TestAllBitrotAlgorithms(t *testing.T) {
    	for bitrotAlgo := range bitrotAlgorithms {
    		testBitrotReaderWriterAlgo(t, bitrotAlgo)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. .cm/plugins/filters/summaryTable/index.js

        let result = `:bar_chart: **Changes by ${title}: this PR is ${Math.round(newRatio, 2)}% new code**`;
    
        // Only title by Platform
        if (title === "Platform") {
            result += `
      <br>${platformsAffected(preppedStatistics)}`;
        }
    
        result += `
      <details>
      <summary>See details</summary>
      <table>
                <tr>
                    <td>${title}</td>
                    <td>Added Lines</td>
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 3.2K bytes
    - Viewed (0)
Back to top