Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 420 for tipini (0.12 seconds)

  1. tests/test_request_params/test_header/test_optional_str.py

    from typing import Annotated
    
    import pytest
    from fastapi import FastAPI, Header
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.get("/optional-str")
    async def read_optional_str(p: Annotated[str | None, Header()] = None):
        return {"p": p}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  2. internal/lsync/lrwmutex.go

    	return locked
    }
    
    const (
    	lockRetryInterval = 50 * time.Millisecond
    )
    
    // lockLoop will acquire either a read or a write lock
    //
    // The call will block until the lock is granted using a built-in
    // timing randomized back-off algorithm to try again until successful
    func (lm *LRWMutex) lockLoop(ctx context.Context, id, source string, timeout time.Duration, isWriteLock bool) (locked bool) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.8K bytes
    - Click Count (0)
  3. docs/tr/docs/deployment/docker.md

    </div>
    
    /// info | Bilgi
    
    Paket bağımlılıklarını tanımlamak ve yüklemek için başka formatlar ve araçlar da vardır.
    
    ///
    
    ### **FastAPI** Kodunu Oluşturun { #create-the-fastapi-code }
    
    * Bir `app` dizini oluşturun ve içine girin.
    * Boş bir `__init__.py` dosyası oluşturun.
    * Aşağıdakilerle bir `main.py` dosyası oluşturun:
    
    ```Python
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 29.6K bytes
    - Click Count (0)
  4. tests/test_request_params/test_file/test_optional.py

    from typing import Annotated
    
    import pytest
    from fastapi import FastAPI, File, UploadFile
    from fastapi.testclient import TestClient
    
    from .utils import get_body_model_name
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.post("/optional-bytes", operation_id="optional_bytes")
    async def read_optional_bytes(p: Annotated[bytes | None, File()] = None):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  5. tests/test_request_params/test_form/test_required_str.py

    from typing import Annotated
    
    import pytest
    from dirty_equals import IsOneOf
    from fastapi import FastAPI, Form
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, Field
    
    from .utils import get_body_model_name
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.post("/required-str", operation_id="required_str")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  6. tests/test_request_params/test_query/test_optional_list.py

    from typing import Annotated
    
    import pytest
    from fastapi import FastAPI, Query
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.get("/optional-list-str")
    async def read_optional_list_str(
        p: Annotated[list[str] | None, Query()] = None,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  7. docs/tr/docs/tutorial/dependencies/sub-dependencies.md

    # Alt Bağımlılıklar { #sub-dependencies }
    
    **Alt bağımlılıkları** olan bağımlılıklar oluşturabilirsiniz.
    
    İhtiyacınız olduğu kadar **derine** gidebilirler.
    
    Bunları çözme işini **FastAPI** üstlenir.
    
    ## İlk bağımlılık "dependable" { #first-dependency-dependable }
    
    Şöyle bir ilk bağımlılık ("dependable") oluşturabilirsiniz:
    
    {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 12:41:38 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  8. docs/tr/docs/how-to/custom-request-and-route.md

    `GzipRequest.get_route_handler` tarafından döndürülen fonksiyonun farklı yaptığı tek şey, `Request`'i bir `GzipRequest`'e dönüştürmektir.
    
    Bunu yaptığımızda `GzipRequest`, veriyi (gerekliyse) *path operations*'larımıza geçirmeden önce açma (decompress) işini üstlenir.
    
    Bundan sonra tüm işleme mantığı aynıdır.
    
    Ancak `GzipRequest.body` içindeki değişikliklerimiz sayesinde, request body gerektiğinde **FastAPI** tarafından yüklendiğinde otomatik olarak decompress edilir.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  9. docs/fr/docs/advanced/security/http-basic-auth.md

        # Renvoyer une erreur
        ...
    ```
    
    Mais en utilisant `secrets.compare_digest()`, cela sera sécurisé contre un type d'attaques appelé « attaques par chronométrage ».
    
    ### Attaques par chronométrage { #timing-attacks }
    
    Mais qu'est-ce qu'une « attaque par chronométrage » ?
    
    Imaginons que des attaquants essaient de deviner le nom d'utilisateur et le mot de passe.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  10. tests/test_request_params/test_header/test_required_str.py

    from typing import Annotated
    
    import pytest
    from dirty_equals import AnyThing, IsOneOf, IsPartialDict
    from fastapi import FastAPI, Header
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.get("/required-str")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 10.3K bytes
    - Click Count (0)
Back to Top