Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for set_cookie (0.22 sec)

  1. docs/en/docs/reference/responses.md

                - headers
                - set_cookie
                - delete_cookie
    
    ::: fastapi.responses.HTMLResponse
        options:
            members:
                - charset
                - status_code
                - media_type
                - body
                - background
                - raw_headers
                - render
                - init_headers
                - headers
                - set_cookie
                - delete_cookie
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. tests/test_repeated_cookie_headers.py

    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    def set_cookie(*, response: Response):
        response.set_cookie("cookie-name", "cookie-value")
        return {}
    
    
    def set_indirect_cookie(*, dep: str = Depends(set_cookie)):
        return dep
    
    
    @app.get("/directCookie")
    def get_direct_cookie(dep: str = Depends(set_cookie)):
        return {"dep": dep}
    
    
    @app.get("/indirectCookie")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jun 13 12:44:51 UTC 2020
    - 792 bytes
    - Viewed (0)
  3. docs_src/response_cookies/tutorial001.py

    app = FastAPI()
    
    
    @app.post("/cookie/")
    def create_cookie():
        content = {"message": "Come to the dark side, we have cookies"}
        response = JSONResponse(content=content)
        response.set_cookie(key="fakesession", value="fake-cookie-session-value")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 344 bytes
    - Viewed (0)
  4. docs_src/response_cookies/tutorial002.py

    from fastapi import FastAPI, Response
    
    app = FastAPI()
    
    
    @app.post("/cookie-and-object/")
    def create_cookie(response: Response):
        response.set_cookie(key="fakesession", value="fake-cookie-session-value")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 272 bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/HttpHeaders.java

      public static final String SERVICE_WORKER_ALLOWED = "Service-Worker-Allowed";
      /** The HTTP {@code Set-Cookie} header field name. */
      public static final String SET_COOKIE = "Set-Cookie";
      /** The HTTP {@code Set-Cookie2} header field name. */
      public static final String SET_COOKIE2 = "Set-Cookie2";
    
      /**
       * The HTTP <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/SourceMap">{@code
       * SourceMap}</a> header field name.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 01 19:08:38 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Cookie.kt

         * [setCookie] is not a well-formed cookie.
         */
        @JvmStatic
        fun parse(
          url: HttpUrl,
          setCookie: String,
        ): Cookie? = parse(System.currentTimeMillis(), url, setCookie)
    
        internal fun parse(
          currentTimeMillis: Long,
          url: HttpUrl,
          setCookie: String,
        ): Cookie? {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/internal.kt

    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.connection.RealConnection
    
    internal fun parseCookie(
      currentTimeMillis: Long,
      url: HttpUrl,
      setCookie: String,
    ): Cookie? = Cookie.parse(currentTimeMillis, url, setCookie)
    
    internal fun cookieToString(
      cookie: Cookie,
      forObsoleteRfc2965: Boolean,
    ): String = cookie.toString(forObsoleteRfc2965)
    
    internal fun addHeaderLenient(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg net/http, type Cookie struct, Unparsed []string
    pkg net/http, type Cookie struct, Value string
    pkg net/http, type CookieJar interface { Cookies, SetCookies }
    pkg net/http, type CookieJar interface, Cookies(*url.URL) []*Cookie
    pkg net/http, type CookieJar interface, SetCookies(*url.URL, []*Cookie)
    pkg net/http, type Dir string
    pkg net/http, type File interface { Close, Read, Readdir, Seek, Stat }
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  9. api/go1.1.txt

    pkg net/http/cookiejar, func New(*Options) (*Jar, error)
    pkg net/http/cookiejar, method (*Jar) Cookies(*url.URL) []*http.Cookie
    pkg net/http/cookiejar, method (*Jar) SetCookies(*url.URL, []*http.Cookie)
    pkg net/http/cookiejar, type Jar struct
    pkg net/http/cookiejar, type Options struct
    pkg net/http/cookiejar, type Options struct, PublicSuffixList PublicSuffixList
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top