You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.8 KiB

📨 🎚

⚙️ Response 🔢

👆 💪 📣 🔢 🆎 Response 👆 🛠️ 🔢 (👆 💪 🍪).

& ⤴️ 👆 💪 ⚒ 🎚 👈 🔀 📨 🎚.

{!../../docs_src/response_headers/tutorial002.py!}

& ⤴️ 👆 💪 📨 🙆 🎚 👆 💪, 👆 🛎 🔜 ( dict, 💽 🏷, ️).

& 🚥 👆 📣 response_model, 🔜 ⚙️ & 🗜 🎚 👆 📨.

FastAPI 🔜 ⚙️ 👈 🔀 📨 ⚗ 🎚 (🍪 & 👔 📟), & 🔜 🚮 👫 🏁 📨 👈 🔌 💲 👆 📨, 🙆 response_model.

👆 💪 📣 Response 🔢 🔗, & ⚒ 🎚 (& 🍪) 👫.

📨 Response 🔗

👆 💪 🚮 🎚 🕐 👆 📨 Response 🔗.

📨 🔬 📨 📨 🔗{.internal-link target=_blank} & 🚶‍♀️ 🎚 🌖 🔢:

{!../../docs_src/response_headers/tutorial001.py!}

/// note | 📡

👆 💪 ⚙️ from starlette.responses import Response ⚖️ from starlette.responses import JSONResponse.

FastAPI 🚚 🎏 starlette.responses fastapi.responses 🏪 👆, 👩‍💻. 🌅 💪 📨 👟 🔗 ➡️ 💃.

& Response 💪 ⚙️ 🛎 ⚒ 🎚 & 🍪, FastAPI 🚚 fastapi.Response.

///

🛃 🎚

✔️ 🤯 👈 🛃 © 🎚 💪 🚮 ⚙️ '✖-' 🔡.

🚥 👆 ✔️ 🛃 🎚 👈 👆 💚 👩‍💻 🖥 💪 👀, 👆 💪 🚮 👫 👆📳 (✍ 🌅 ⚜ (✖️-🇨🇳 ℹ 🤝){.internal-link target=_blank}), ⚙️ 🔢 expose_headers 📄 💃 ⚜ 🩺.