Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 69 for Gun (0.03 seconds)

  1. docs/de/docs/tutorial/server-sent-events.md

    Jedes Event ist ein kleiner Textblock mit „Feldern“ wie `data`, `event`, `id` und `retry`, getrennt durch Leerzeilen.
    
    Das sieht so aus:
    
    ```
    data: {"name": "Portal Gun", "price": 999.99}
    
    data: {"name": "Plumbus", "price": 32.99}
    
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:48:21 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  2. docs/pt/docs/tutorial/server-sent-events.md

    Cada evento é um pequeno bloco de texto com “campos” como `data`, `event`, `id` e `retry`, separados por linhas em branco.
    
    Fica assim:
    
    ```
    data: {"name": "Portal Gun", "price": 999.99}
    
    data: {"name": "Plumbus", "price": 32.99}
    
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:13 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_bigger_applications/test_main.py

            "/items?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 200
        assert response.json() == {
            "plumbus": {"name": "Plumbus"},
            "gun": {"name": "Portal Gun"},
        }
    
    
    def test_items_with_no_token_jessica(client: TestClient):
        response = client.get("/items", headers={"X-Token": "fake-super-secret-token"})
        assert response.status_code == 422
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  4. docs/uk/docs/tutorial/request-form-models.md

    Якщо клієнт спробує надіслати додаткові дані, він отримає **відповідь з помилкою**.
    
    Наприклад, якщо клієнт спробує надіслати поля форми:
    
    * `username`: `Rick`
    * `password`: `Portal Gun`
    * `extra`: `Mr. Poopybutthole`
    
    Він отримає відповідь із помилкою, яка повідомляє, що поле `extra` не дозволено:
    
    ```json
    {
        "detail": [
            {
                "type": "extra_forbidden",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  5. docs/tr/docs/tutorial/stream-json-lines.md

    Response’un `application/json` yerine `application/jsonl` içerik türü (Content-Type) olur ve body aşağıdaki gibi görünür:
    
    ```json
    {"name": "Plumbus", "description": "A multi-purpose household device."}
    {"name": "Portal Gun", "description": "A portal opening device."}
    {"name": "Meeseeks Box", "description": "A box that summons a Meeseeks."}
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:51:35 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  6. docs/pt/docs/tutorial/request-form-models.md

    Caso um cliente tente enviar informações adicionais, ele receberá um retorno de **erro**.
    
    Por exemplo, se o cliente tentar enviar os campos de formulário:
    
    * `username`: `Rick`
    * `password`: `Portal Gun`
    * `extra`: `Mr. Poopybutthole`
    
    Ele receberá um retorno de erro informando-o que o campo `extra` não é permitido:
    
    ```json
    {
        "detail": [
            {
                "type": "extra_forbidden",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/tutorial/request-form-models.md

    你可以使用 Pydantic 的模型設定來 `forbid` 任何 `extra` 欄位:
    
    {* ../../docs_src/request_form_models/tutorial002_an_py310.py hl[12] *}
    
    如果用戶端嘗試傳送額外資料,將會收到錯誤回應。
    
    例如,用戶端若送出以下表單欄位:
    
    * `username`: `Rick`
    * `password`: `Portal Gun`
    * `extra`: `Mr. Poopybutthole`
    
    他們會收到一個錯誤回應,告知欄位 `extra` 不被允許:
    
    ```json
    {
        "detail": [
            {
                "type": "extra_forbidden",
                "loc": ["body", "extra"],
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 2K bytes
    - Click Count (0)
  8. docs/tr/docs/tutorial/server-sent-events.md

    Her olay, aralarında boş satırlar bulunan ve `data`, `event`, `id` ve `retry` gibi "alanlar" içeren küçük bir metin bloğudur.
    
    Şuna benzer:
    
    ```
    data: {"name": "Portal Gun", "price": 999.99}
    
    data: {"name": "Plumbus", "price": 32.99}
    
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:51:35 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  9. docs/ru/docs/tutorial/server-sent-events.md

    Каждое событие — это небольшой текстовый блок с «полями», такими как `data`, `event`, `id` и `retry`, разделёнными пустыми строками.
    
    Это выглядит так:
    
    ```
    data: {"name": "Portal Gun", "price": 999.99}
    
    data: {"name": "Plumbus", "price": 32.99}
    
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  10. docs/fr/docs/tutorial/stream-json-lines.md

    Une réponse aurait un type de contenu `application/jsonl` (au lieu de `application/json`) et le corps ressemblerait à ceci :
    
    ```json
    {"name": "Plumbus", "description": "A multi-purpose household device."}
    {"name": "Portal Gun", "description": "A portal opening device."}
    {"name": "Meeseeks Box", "description": "A box that summons a Meeseeks."}
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:33:45 GMT 2026
    - 4.9K bytes
    - Click Count (0)
Back to Top