Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 441 - 450 of 710 for acceptT2 (0.21 seconds)

  1. docs/zh-hant/docs/advanced/middleware.md

    - `www_redirect` - 若設為 True,對允許主機的不含 www 版本的請求會被重新導向至其 www 對應版本。預設為 `True`。
    
    若傳入請求驗證失敗,將回傳 `400` 回應。
    
    ## `GZipMiddleware` { #gzipmiddleware }
    
    處理在 `Accept-Encoding` 標頭中包含 `"gzip"` 的請求之 GZip 壓縮回應。
    
    此中介軟體會處理一般與串流回應。
    
    {* ../../docs_src/advanced_middleware/tutorial003_py310.py hl[2,6] *}
    
    支援以下參數:
    
    - `minimum_size` - 小於此位元組大小的回應不會進行 GZip。預設為 `500`。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val denied = server.takeRequest()
        assertThat(denied.headers["Authorization"]).isNull()
        val accepted = server.takeRequest()
        assertThat(accepted.requestLine).isEqualTo("GET / HTTP/2")
        assertThat(accepted.headers["Authorization"]).isEqualTo(credential)
      }
    
      @Test
      fun redirect() {
        server.enqueue(
          MockResponse(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 67.5K bytes
    - Click Count (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java

        public boolean hasVersionRangeViolations() {
            return versionRangeViolations != null;
        }
    
        /**
         * TODO this needs to accept a {@link OverConstrainedVersionException} as returned by
         *       {@link #getVersionRangeViolation(int)} but it's not used like that in
         *       DefaultLegacyArtifactCollector
         *
         * @param e an exception
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 10K bytes
    - Click Count (0)
  4. fastapi/exceptions.py

            session: Annotated[str | None, Cookie()] = None,
            item_id: str,
        ):
            if session is None:
                raise WebSocketException(code=status.WS_1008_POLICY_VIOLATION)
            await websocket.accept()
            while True:
                data = await websocket.receive_text()
                await websocket.send_text(f"Session cookie is: {session}")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  5. src/main/java/jcifs/util/SmbCircuitBreaker.java

         */
        private double calculateAvailability() {
            long total = totalRequests.get();
            if (total == 0) {
                return 100.0;
            }
            long accepted = total - totalCircuitOpenRejections.get();
            return (accepted * 100.0) / total;
        }
    
        /**
         * Circuit breaker metrics snapshot (Java 17 Record)
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/SmbResourceTest.java

                // Then
                assertEquals(expectedAttributes, attributes, "Should return correct attributes");
            }
    
            @Test
            @DisplayName("setAttributes should accept valid attributes")
            void testSetAttributes() throws CIFSException {
                // Given
                int newAttributes = 0x01; // FILE_ATTRIBUTE_READONLY
    
                // When/Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/SocksProxy.kt

        executor.execute {
          val threadName = "SocksProxy ${serverSocket!!.localPort}"
          Thread.currentThread().name = threadName
          try {
            while (true) {
              val socket = serverSocket!!.accept()
              connectionCount.incrementAndGet()
              service(socket)
            }
          } catch (e: SocketException) {
            logger.info("$threadName done accepting connections: ${e.message}")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  8. internal/http/transports.go

    	// 		// if a response to Ping is not received.
    	// 		trhttp2.PingTimeout = dialTimeout
    	// 		// DisableCompression, if true, prevents the Transport from
    	// 		// requesting compression with an "Accept-Encoding: gzip"
    	// 		trhttp2.DisableCompression = true
    	// 	}
    	// }
    
    	return tr
    }
    
    // NewInternodeHTTPTransport returns transport for internode MinIO connections.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 08 17:51:53 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                assertNotNull(writeRequest);
            }
    
            @Test
            @DisplayName("Should accept null file ID in constructor")
            void testConstructorWithNullFileId() {
                assertDoesNotThrow(() -> new Smb2WriteRequest(mockConfig, null));
            }
    
            @Test
            @DisplayName("Should accept empty file ID in constructor")
            void testConstructorWithEmptyFileId() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/SmbCopyUtilTest.java

                while (!w.isReady() && System.currentTimeMillis() < deadline) {
                    w.wait(10);
                }
                assertTrue(w.isReady(), "WriterThread should be ready to accept work");
    
                // Act: submit a write
                w.write(payload, 3, out);
            }
    
            // Assert: verify the underlying stream was called
            verify(out, timeout(1000)).write(payload, 0, 3);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.1K bytes
    - Click Count (0)
Back to Top