Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for Malone (0.19 sec)

  1. docs_src/response_headers/tutorial001.py

    from fastapi import FastAPI
    from fastapi.responses import JSONResponse
    
    app = FastAPI()
    
    
    @app.get("/headers/")
    def get_headers():
        content = {"message": "Hello World"}
        headers = {"X-Cat-Dog": "alone in the world", "Content-Language": "en-US"}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 309 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_response_headers/test_tutorial002.py

    def test_path_operation():
        response = client.get("/headers-and-object/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Hello World"}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 378 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_response_headers/test_tutorial001.py

    
    def test_path_operation():
        response = client.get("/headers/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Hello World"}
        assert response.headers["X-Cat-Dog"] == "alone in the world"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 426 bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/handling-errors.md

    ```Python
    from starlette.exceptions import HTTPException as StarletteHTTPException
    ```
    
    ### Re-use **FastAPI**'s exception handlers
    
    If you want to use the exception along with the same default exception handlers from  **FastAPI**, You can import and re-use the default exception handlers from `fastapi.exception_handlers`:
    
    ```Python hl_lines="2-5  15  21"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  5. docs/tr/docs/alternatives.md

    Sonrasında ise projenin odağı değişti.
    
    Geliştiricinin Starlette'e odaklanması gerekince proje de artık bir API web framework'ü olmayı bıraktı.
    
    Artık APIStar, OpenAPI özelliklerini doğrulamak için bir dizi araç sunan bir proje haline geldi.
    
    !!! info "Bilgi"
        APIStar, aşağıdaki projeleri de üreten Tom Christie tarafından geliştirildi:
    
        * Django REST Framework
        * **FastAPI**'ın da dayandığı Starlette
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 28.8K bytes
    - Viewed (0)
  6. .github/DISCUSSION_TEMPLATE/questions.yml

            By asking questions in a structured way (following this) it will be much easier to help you.
    
            And there's a high chance that you will find the solution along the way and you won't even have to submit it and wait for an answer. 😎
    
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Aug 03 15:59:41 GMT 2023
    - 5.8K bytes
    - Viewed (1)
  7. docs/tr/docs/index.md

    "_Python ile kullanıma hazır bir API oluşturmak isteyen herhangi biri için, **FastAPI**'ı şiddetle tavsiye ederim. **Harika tasarlanmış**, **kullanımı kolay** ve **yüksek ölçeklenebilir**, API odaklı geliştirme stratejimizin **ana bileşeni** haline geldi ve Virtual TAC Engineer gibi birçok otomasyon ve servisi yönetiyor._"
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 22K bytes
    - Viewed (0)
  8. fastapi/applications.py

            app = FastAPI()
    
            @app.head("/items/", status_code=204)
            def get_items_headers(response: Response):
                response.headers["X-Cat-Dog"] = "Alone in the world"
            ```
            """
            return self.router.head(
                path,
                response_model=response_model,
                status_code=status_code,
                tags=tags,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/background-tasks.md

    It's still possible to use `BackgroundTask` alone in FastAPI, but you have to create the object in your code and return a Starlette `Response` including it.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  10. docs/language_names.yml

    to: faka Tonga
    tr: Türkçe
    ts: Xitsonga
    tt: татар теле
    tw: Twi
    ty: Reo Tahiti
    ug: ئۇيغۇرچە‎
    uk: українська мова
    ur: اردو
    uz: Ўзбек
    ve: Tshivenḓa
    vi: Tiếng Việt
    vo: Volapük
    wa: walon
    wo: Wollof
    xh: isiXhosa
    yi: ייִדיש
    yo: Yorùbá
    za: Saɯ cueŋƅ
    zh: 简体中文
    zh-hant: 繁體中文
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 22 19:42:53 GMT 2024
    - 3.1K bytes
    - Viewed (0)
Back to top