Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 112 for 500 (0.18 sec)

  1. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        try (FileOutputStream fos = new FileOutputStream(testFile)) {
          for (int i = 0; i < 500; i++) {
            fos.write(dummyData);
          }
        }
        try (ReadableByteChannel inChannel = new RandomAccessFile(testFile, "r").getChannel()) {
          ByteStreams.copy(inChannel, outChannel);
        }
        byte[] actual = out.toByteArray();
        for (int i = 0; i < 500 * chunkSize; i += chunkSize) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

          throws ExecutionException {
    
        repeatedlyInterruptTestThread(100, tearDownStack);
    
        assertThrows(
            TimeoutException.class,
            () -> getUninterruptibly(delayedFuture, 500, TimeUnit.MILLISECONDS));
        assertTrue(Thread.interrupted()); // clears the interrupt state, too
    
        assertFalse(sleeper.completed);
        assertTrue(getUninterruptibly(delayedFuture));
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/response-status-code.md

    * **`300`** 及以上的状态码用于**重定向**。具有这些状态码的响应不一定包含响应体,但 `304`**未修改**是个例外,该响应不得包含响应体
    * **`400`** 及以上的状态码用于表示**客户端错误**。这些可能是第二常用的类型
        * `404`,用于**未找到**响应
        * 对于来自客户端的一般错误,可以只使用 `400`
    * `500` 及以上的状态码用于表示服务器端错误。几乎永远不会直接使用这些状态码。应用代码或服务器出现问题时,会自动返回这些状态代码
    
    !!! tip "提示"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:40:18 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  4. docs/zh/docs/advanced/middleware.md

    处理 `Accept-Encoding` 请求头中包含 `gzip` 请求的 GZip 响应。
    
    中间件会处理标准响应与流响应。
    
    ```Python hl_lines="2  6"
    {!../../../docs_src/advanced_middleware/tutorial003.py!}
    ```
    
    支持以下参数:
    
    * `minimum_size` - 小于最小字节的响应不使用 GZip。 默认值是 `500`。
    
    ## 其它中间件
    
    除了上述中间件外,FastAPI 还支持其它ASGI 中间件。
    
    例如:
    
    * <a href="https://docs.sentry.io/platforms/python/asgi/" class="external-link" target="_blank">Sentry</a>
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:44:27 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. internal/http/server.go

    	GlobalMinIOVersion string
    
    	// GlobalDeploymentID - is sent in the header to all http targets
    	GlobalDeploymentID string
    )
    
    const (
    	shutdownPollIntervalMax = 500 * time.Millisecond
    
    	// DefaultShutdownTimeout - default shutdown timeout to gracefully shutdown server.
    	DefaultShutdownTimeout = 5 * time.Second
    
    	// DefaultIdleTimeout for idle inactive connections
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 09 21:25:16 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  6. cmd/iam-object-store.go

    		if err != nil {
    			if err == errConfigNotFound {
    				return errNoSuchPolicy
    			}
    			retries--
    			if retries <= 0 {
    				return err
    			}
    			time.Sleep(500 * time.Millisecond)
    			goto retry
    		}
    
    		var p PolicyDoc
    		err = p.parseJSON(data)
    		if err != nil {
    			return err
    		}
    
    		if p.Version == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="13-14"
        {!> ../../../docs_src/dependencies/tutorial008c.py!}
        ```
    
    In this case, the client will see an *HTTP 500 Internal Server Error* response as it should, given that we are not raising an `HTTPException` or similar, but the server will **not have any logs** or any other indication of what was the error. 😱
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  8. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

          assertThat(ioe.cause!!).isInstanceOf<EOFException>()
        }
      }
    
      // TODO GET preferred order - with tests to confirm this
      // 1. successful fresh cached GET response
      // 2. unsuccessful (404, 500) fresh cached GET response
      // 3. successful network response
      // 4. successful stale cached GET response
      // 5. unsuccessful response
      @Test
      fun usesCache() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 11K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        for (int i = 0; i < 8; i++) {
          limiter.acquire(); // #1
        }
        stopwatch.sleepMillis(500); // #2: to repay for the last acquire
        stopwatch.sleepMillis(4000); // #3: becomes cold again
        for (int i = 0; i < 8; i++) {
          limiter.acquire(); // // #4
        }
        stopwatch.sleepMillis(500); // #5: to repay for the last acquire
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt

        val request = Request(server.url("/"))
        val response1 = client.newCall(request).execute()
        assertThat(response1.body.string()).isEqualTo("a")
    
        // Give the thread pool a chance to evict.
        Thread.sleep(500)
        val response2 = client.newCall(request).execute()
        assertThat(response2.body.string()).isEqualTo("b")
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
Back to top