Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 551 - 560 of 1,031 for wait (0.02 seconds)

  1. docs/fr/docs/tutorial/static-files.md

    ## Détails { #details }
    
    Le premier `"/static"` fait référence au sous-chemin sur lequel cette « sous-application » sera « montée ». Ainsi, tout chemin qui commence par `"/static"` sera géré par elle.
    
    Le `directory="static"` fait référence au nom du répertoire qui contient vos fichiers statiques.
    
    Le `name="static"` lui donne un nom utilisable en interne par **FastAPI**.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  2. cmd/data-usage_test.go

    		t.Error("lastupdate not set")
    	}
    
    	if !want.Info.LastUpdate.Equal(got.Info.LastUpdate) {
    		t.Fatalf("deserialize LastUpdate mismatch\nwant: %+v\ngot:  %+v", want, got)
    	}
    	if len(want.Cache) != len(got.Cache) {
    		t.Errorf("deserialize mismatch length\nwant: %+v\ngot:  %+v", len(want.Cache), len(got.Cache))
    	}
    	for wkey, wval := range want.Cache {
    		gotv := got.Cache[wkey]
    		if !equalAsJSON(gotv, wval) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  3. utils/utils_unix_test.go

    func TestSourceDir(t *testing.T) {
    	cases := []struct {
    		file string
    		want string
    	}{
    		{
    			file: "/Users/name/go/pkg/mod/gorm.io/gorm@v1.2.3/utils/utils.go",
    			want: "/Users/name/go/pkg/mod/gorm.io/",
    		},
    		{
    			file: "/go/work/proj/gorm/utils/utils.go",
    			want: "/go/work/proj/gorm/",
    		},
    		{
    			file: "/go/work/proj/gorm_alias/utils/utils.go",
    			want: "/go/work/proj/gorm_alias/",
    		},
    		{
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Nov 21 02:48:13 GMT 2022
    - 731 bytes
    - Click Count (0)
  4. docs/fr/docs/deployment/https.md

    * Les certificats ont une **durée de vie**.
        * Ils **expirent**.
        * Puis ils doivent être **renouvelés**, **acquis à nouveau** auprès de la tierce partie.
    * Le cryptage de la connexion se fait au **niveau TCP**.
        * C'est une couche **en dessous de HTTP**.
        * Donc, la gestion du **certificat et du cryptage** est effectuée **avant HTTP**.
    * **TCP ne connaît pas les « domaines »**. Il ne connaît que les adresses IP.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  5. docs_src/websockets_/tutorial003_py310.py

                await connection.send_text(message)
    
    
    manager = ConnectionManager()
    
    
    @app.get("/")
    async def get():
        return HTMLResponse(html)
    
    
    @app.websocket("/ws/{client_id}")
    async def websocket_endpoint(websocket: WebSocket, client_id: int):
        await manager.connect(websocket)
        try:
            while True:
                data = await websocket.receive_text()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 12:34:37 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  6. docs/uk/docs/advanced/async-tests.md

    {* ../../docs_src/async_tests/app_a_py310/test_main.py hl[9:12] *}
    
    Це еквівалентно:
    
    ```Python
    response = client.get('/')
    ```
    
    ...що ми раніше використовували для надсилання запитів за допомогою `TestClient`.
    
    /// tip | Порада
    
    Зауважте, що ми використовуємо async/await із новим `AsyncClient` - запит є асинхронним.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 5.9K bytes
    - Click Count (0)
  7. tests/test_list_bytes_file_order_preserved_issue_14811.py

        async def patched_read(self: StarletteUploadFile, size: int = -1) -> bytes:
            # Make the FIRST file slower *deterministically*
            if self.filename == "slow.txt":
                await anyio.sleep(0.05)
            return await original_read(self, size)
    
        monkeypatch.setattr(StarletteUploadFile, "read", patched_read)
    
        client = TestClient(app)
    
        files = [
            ("files", ("slow.txt", b"A" * 10, "text/plain")),
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 10 12:14:38 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  8. tests/test_datastructures.py

        stream = io.BytesIO(b"data")
        file = UploadFile(filename="file", file=stream, size=4)
        assert await file.read() == b"data"
        assert file.size == 4
        await file.write(b" and more data!")
        assert await file.read() == b""
        assert file.size == 19
        await file.seek(0)
        assert await file.read() == b"data and more data!"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  9. docs/fr/docs/deployment/fastapicloud.md

    # FastAPI Cloud { #fastapi-cloud }
    
    Vous pouvez déployer votre application FastAPI sur [FastAPI Cloud](https://fastapicloud.com) avec une **seule commande**, allez vous inscrire sur la liste d’attente si ce n’est pas déjà fait. 🚀
    
    ## Se connecter { #login }
    
    Vous devez vous assurer que vous avez déjà un compte **FastAPI Cloud** (nous vous avons invité depuis la liste d’attente 😉).
    
    Connectez-vous ensuite :
    
    <div class="termy">
    
    ```console
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  10. cmd/batch-job-common-types_test.go

    				LowerBound: 1 << 20,
    			},
    			want: false,
    		},
    		{
    			// 11MiB > 10 MiB -> out of range from right
    			objSize: 11 << 20,
    			sizeFilter: BatchJobSizeFilter{
    				UpperBound: 10 << 20,
    				LowerBound: 1 << 20,
    			},
    			want: false,
    		},
    		{
    			//  2MiB < 10MiB -> in range
    			objSize: 2 << 20,
    			sizeFilter: BatchJobSizeFilter{
    				UpperBound: 10 << 20,
    			},
    			want: true,
    		},
    		{
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Jan 08 23:22:28 GMT 2024
    - 3.3K bytes
    - Click Count (0)
Back to Top