Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for CommonHeaders (0.2 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt

    import okhttp3.Headers
    import okhttp3.Request
    import okhttp3.RequestBody
    import okhttp3.internal.http.HttpMethod
    
    fun Request.commonHeader(name: String): String? = headers[name]
    
    fun Request.commonHeaders(name: String): List<String> = headers.values(name)
    
    fun Request.commonNewBuilder(): Request.Builder = Request.Builder(this)
    
    fun Request.commonCacheControl(): CacheControl {
      var result = lazyCacheControl
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Response.kt

    import okhttp3.internal.commonCacheResponse
    import okhttp3.internal.commonClose
    import okhttp3.internal.commonCode
    import okhttp3.internal.commonEmptyResponse
    import okhttp3.internal.commonHeader
    import okhttp3.internal.commonHeaders
    import okhttp3.internal.commonIsRedirect
    import okhttp3.internal.commonIsSuccessful
    import okhttp3.internal.commonMessage
    import okhttp3.internal.commonNetworkResponse
    import okhttp3.internal.commonNewBuilder
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 06 09:38:30 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  3. docs/en/docs/release-notes.md

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class CommonHeaders(BaseModel):
        host: str
        save_data: bool
        if_modified_since: str | None = None
        traceparent: str | None = None
        x_tag: list[str] = []
    
    
    @app.get("/items/")
    async def read_items(headers: Annotated[CommonHeaders, Header()]):
        return headers
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
Back to top