Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for depende (0.18 sec)

  1. tests/test_include_router_defaults_overrides.py

    import warnings
    
    import pytest
    from fastapi import APIRouter, Depends, FastAPI, Response
    from fastapi.responses import JSONResponse
    from fastapi.testclient import TestClient
    
    
    class ResponseLevel0(JSONResponse):
        media_type = "application/x-level-0"
    
    
    class ResponseLevel1(JSONResponse):
        media_type = "application/x-level-1"
    
    
    class ResponseLevel2(JSONResponse):
        media_type = "application/x-level-2"
    
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 358.6K bytes
    - Viewed (0)
  2. docs/en/docs/release-notes.md

        return User()
    
    
    @app.get("/items/")
    def read_items(user: User = Depends(get_current_user)):
        ...
    
    
    @app.post("/items/")
    def create_item(*, user: User = Depends(get_current_user), item: Item):
        ...
    
    
    @app.get("/items/{item_id}")
    def read_item(*, user: User = Depends(get_current_user), item_id: int):
        ...
    
    
    @app.delete("/items/{item_id}")
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 16:51:17 UTC 2024
    - 449.4K bytes
    - Viewed (0)
  3. doc/go_spec.html

    <code>t.m</code> is invoked.
    </li>
    
    <li>
    A variable, function, or method <code>x</code> depends on a variable
    <code>y</code> if <code>x</code>'s initialization expression or body
    (for functions and methods) contains a reference to <code>y</code>
    or to a function or method that depends on <code>y</code>.
    </li>
    </ul>
    
    <p>
    For example, given the declarations
    </p>
    
    <pre>
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (1)
Back to top