Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for fakesession (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs_src/response_cookies/tutorial002_py310.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")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 272 bytes
    - Click Count (0)
  2. docs_src/response_cookies/tutorial001_py310.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")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 344 bytes
    - Click Count (0)
Back to Top