Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 175 for Beavers (0.21 sec)

  1. docs/zh/docs/advanced/response-headers.md

    # 响应头
    
    ## 使用 `Response` 参数
    
    你可以在你的*路径操作函数*中声明一个`Response`类型的参数(就像你可以为cookies做的那样)。
    
    然后你可以在这个*临时*响应对象中设置头部。
    ```Python hl_lines="1  7-8"
    {!../../../docs_src/response_headers/tutorial002.py!}
    ```
    
    然后你可以像平常一样返回任何你需要的对象(例如一个`dict`或者一个数据库模型)。如果你声明了一个`response_model`,它仍然会被用来过滤和转换你返回的对象。
    
    **FastAPI**将使用这个临时响应来提取头部(也包括cookies和状态码),并将它们放入包含你返回的值的最终响应中,该响应由任何`response_model`过滤。
    
    你也可以在依赖项中声明`Response`参数,并在其中设置头部(和cookies)。
    
    ## 直接返回 `Response`
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2K bytes
    - Viewed (0)
  2. cmd/api-headers.go

    	w.Header().Set(xhttp.CacheControl, "no-cache") // nginx to turn off buffering
    	w.Header().Set("X-Accel-Buffering", "no")      // nginx to turn off buffering
    }
    
    // Write http common headers
    func setCommonHeaders(w http.ResponseWriter) {
    	// Set the "Server" http header.
    	w.Header().Set(xhttp.ServerInfo, MinioStoreName)
    
    	// Set `x-amz-bucket-region` only if region is set on the server
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.9K bytes
    - Viewed (1)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      }
    
      /** Accept headers from the network and store them until the client calls [takeHeaders]. */
      fun receiveHeaders(
        headers: Headers,
        inFinished: Boolean,
      ) {
        lock.assertNotHeld()
    
        val open: Boolean
        this.withLock {
          if (!hasResponseHeaders ||
            headers[Header.RESPONSE_STATUS_UTF8] != null ||
            headers[Header.TARGET_METHOD_UTF8] != null
          ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  4. architecture/ambient/ztunnel.md

    This is not really so much a new protocol, but rather a name we came up with to refer to the expectations of clients and servers communicating in the mesh.
    
    HBONE is just a standard HTTP `CONNECT` tunnel, over mutual TLS with mesh (SPIFFE) certificates, on a well known port (15008).
    The target destination address is set in the `:authority` header, and additional headers can be included as well.
    Currently, only HTTP/2 is supported, though HTTP/1.1 and HTTP/3 are planned.
    
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Apr 25 22:35:16 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

              } else {
                recoveredFailures += e
              }
              newRoutePlanner = false
              continue
            }
    
            // Clear out downstream interceptor's additional request headers, cookies, etc.
            response =
              response.newBuilder()
                .request(request)
                .priorResponse(priorResponse?.stripBody())
                .build()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

    import okhttp3.internal.http2.Http2.FLAG_END_HEADERS
    import okhttp3.internal.http2.Http2.FLAG_END_STREAM
    import okhttp3.internal.http2.Http2.FLAG_NONE
    import okhttp3.internal.http2.Http2.INITIAL_MAX_FRAME_SIZE
    import okhttp3.internal.http2.Http2.TYPE_CONTINUATION
    import okhttp3.internal.http2.Http2.TYPE_DATA
    import okhttp3.internal.http2.Http2.TYPE_GOAWAY
    import okhttp3.internal.http2.Http2.TYPE_HEADERS
    import okhttp3.internal.http2.Http2.TYPE_PING
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_4x.md

        fail the call.
    
    
    ## Version 4.1.1
    
    _2019-09-05_
    
     *  Fix: Don't drop repeated headers when validating cached responses. In our Kotlin upgrade we
        introduced a regression where we iterated the number of unique header names rather than then
        number of unique headers. If you're using OkHttp's response cache this may impact you.
    
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  8. fastapi/openapi/models.py

    class ParameterInType(Enum):
        query = "query"
        header = "header"
        path = "path"
        cookie = "cookie"
    
    
    class Encoding(BaseModelWithConfig):
        contentType: Optional[str] = None
        headers: Optional[Dict[str, Union["Header", Reference]]] = None
        style: Optional[str] = None
        explode: Optional[bool] = None
        allowReserved: Optional[bool] = None
    
    
    class MediaType(BaseModelWithConfig):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  9. maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

                            }
                        }
                    }
    
                    // org.eclipse.aether.ConfigurationProperties.HTTP_HEADERS => Map<String, String>
                    if (headers != null) {
                        configProps.put(ConfigurationProperties.HTTP_HEADERS + "." + server.getId(), headers);
                    }
                    // org.eclipse.aether.ConfigurationProperties.CONNECT_TIMEOUT => int
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 27.5K bytes
    - Viewed (0)
  10. CHANGELOG.md

        chain and an untrusted-but-pinned chain.
     *  Upgrade: [Kotlin 1.6.10][kotlin_1_6_10].
    
    
    ## Version 5.0.0-alpha.3
    
    _2021-11-22_
    
     *  Fix: Change `Headers.toString()` to redact authorization and cookie headers.
     *  Fix: Don't do DNS to get the hostname for `RecordedRequest.requestUrl`. This was doing a DNS
        lookup for the local hostname, but we really just wanted the `Host` header.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
Back to top