Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for Barham (0.16 sec)

  1. fastapi/param_functions.py

    Sebastián Ramírez <******@****.***> 1713469257 -0500
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  2. tests/test_query.py

            }
        )
    
    
    def test_query_param():
        response = client.get("/query/param")
        assert response.status_code == 200
        assert response.json() == "foo bar"
    
    
    def test_query_param_query_50():
        response = client.get("/query/param?query=50")
        assert response.status_code == 200
        assert response.json() == "foo bar 50"
    
    
    def test_query_param_required():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  3. fastapi/security/http.py

        async def __call__(  # type: ignore
            self, request: Request
        ) -> Optional[HTTPBasicCredentials]:
            authorization = request.headers.get("Authorization")
            scheme, param = get_authorization_scheme_param(authorization)
            if self.realm:
                unauthorized_headers = {"WWW-Authenticate": f'Basic realm="{self.realm}"'}
            else:
                unauthorized_headers = {"WWW-Authenticate": "Basic"}
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Apr 19 15:29:38 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  4. fastapi/security/oauth2.py

    from fastapi.openapi.models import OAuth2 as OAuth2Model
    from fastapi.openapi.models import OAuthFlows as OAuthFlowsModel
    from fastapi.param_functions import Form
    from fastapi.security.base import SecurityBase
    from fastapi.security.utils import get_authorization_scheme_param
    from starlette.requests import Request
    from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  5. fastapi/params.py

    from ._compat import PYDANTIC_V2, PYDANTIC_VERSION, Undefined
    
    _Unset: Any = Undefined
    
    
    class ParamTypes(Enum):
        query = "query"
        header = "header"
        path = "path"
        cookie = "cookie"
    
    
    class Param(FieldInfo):
        in_: ParamTypes
    
        def __init__(
            self,
            default: Any = Undefined,
            *,
            default_factory: Union[Callable[[], Any], None] = _Unset,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 27.5K bytes
    - Viewed (1)
  6. docs/pt/docs/tutorial/body-fields.md

    !!! note "Detalhes técnicos"
        Na realidade, `Query`, `Path` e outros que você verá em seguida, criam objetos de subclasses de uma classe `Param` comum, que é ela mesma uma subclasse da classe `FieldInfo` do Pydantic.
    
        E `Field` do Pydantic retorna uma instância de `FieldInfo` também.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 02 15:00:11 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/cookie-params.md

        ```Python hl_lines="9"
        {!> ../../../docs_src/cookie_params/tutorial001.py!}
        ```
    
    !!! note "Detalles Técnicos"
        `Cookie` es una clase "hermana" de `Path` y `Query`. También hereda de la misma clase común `Param`.
    
        Pero recuerda que cuando importas `Query`, `Path`, `Cookie`  y otros de `fastapi`, en realidad son funciones que devuelven clases especiales.
    
    !!! info
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Apr 19 19:30:26 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-fields.md

    `Field` works the same way as `Query`, `Path` and `Body`, it has all the same parameters, etc.
    
    !!! note "Technical Details"
        Actually, `Query`, `Path` and others you'll see next create objects of subclasses of a common `Param` class, which is itself a subclass of Pydantic's `FieldInfo` class.
    
        And Pydantic's `Field` returns an instance of `FieldInfo` as well.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  9. fastapi/utils.py

            "4XX",
            "5XX",
        }:
            return True
        current_status_code = int(status_code)
        return not (current_status_code < 200 or current_status_code in {204, 205, 304})
    
    
    def get_path_param_names(path: str) -> Set[str]:
        return set(re.findall("{(.*?)}", path))
    
    
    def create_response_field(
        name: str,
        type_: Type[Any],
        class_validators: Optional[Dict[str, Validator]] = None,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/path-params-numeric-validations.md

    &amp; 👆 💪 📣 🔢 🔬:
    
    * `gt`: `g`🅾 `t`👲
    * `ge`: `g`🅾 🌘 ⚖️ `e`🅾
    * `lt`: `l`👭 `t`👲
    * `le`: `l`👭 🌘 ⚖️ `e`🅾
    
    !!! info
        `Query`, `Path`, &amp; 🎏 🎓 👆 🔜 👀 ⏪ 🏿 ⚠ `Param` 🎓.
    
        🌐 👫 💰 🎏 🔢 🌖 🔬 &amp; 🗃 👆 ✔️ 👀.
    
    !!! note "📡 ℹ"
        🕐❔ 👆 🗄 `Query`, `Path` &amp; 🎏 ⚪️➡️ `fastapi`, 👫 🤙 🔢.
    
        👈 🕐❔ 🤙, 📨 👐 🎓 🎏 📛.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.4K bytes
    - Viewed (0)
Back to top