Herrtian
955a622207
fix: keep explicit head routes preferred
2 weeks ago
Herrtian
429a3dc546
test: cover auto head route handlers
2 weeks ago
tengtian
fb78a210ad
Automatically support HEAD method for all GET routes
RFC 7231 §4.3.2 states that the server SHOULD send the same header fields
in response to a HEAD request as it would have sent for GET. Starlette
does this by default but FastAPI's APIRoute did not.
This adds automatic HEAD support by overriding matches() and handle() on
APIRoute to accept HEAD requests when the route has GET in its methods.
Key design decisions:
- HEAD is NOT added to self.methods, so it stays out of the OpenAPI schema
- Explicit HEAD routes still work and appear in OpenAPI when declared
- The match promotion only happens when HEAD is not already in methods,
so explicit @app.head() or methods=["GET","HEAD"] are unaffected
- POST/PUT/DELETE/PATCH routes are not affected
Closes #1773
2 months ago
github-actions[bot]
9653034b8d
📝 Update release notes
[skip ci]
2 months ago
dependabot[bot]
6f9a102faf
⬆ Bump cryptography from 46.0.5 to 46.0.7 ( #15314 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
eba8942c81
📝 Update release notes
[skip ci]
2 months ago
dependabot[bot]
77d080caf8
⬆ Bump strawberry-graphql from 0.307.1 to 0.312.3 ( #15309 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
c3c9dd6b1a
📝 Update release notes
[skip ci]
2 months ago
Motov Yurii
180e81bb4b
🔨 Add pre-commit hook to ensure latest release header has date ( #15293 )
2 months ago
Sebastián Ramírez
1f442c454f
🔖 Release version 0.135.3
2 months ago
Sebastián Ramírez
8f5d1577b4
📝 Update release notes
2 months ago
github-actions[bot]
428452a710
📝 Update release notes
[skip ci]
2 months ago
Sebastián Ramírez
70580da818
✨ Add support for `@app.vibe()` ( #15280 )
2 months ago
github-actions[bot]
6ee87478d8
📝 Update release notes
[skip ci]
2 months ago
Sebastián Ramírez
3e72c09a2a
👥 Update FastAPI People - Experts ( #15279 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
96df35f7a4
📝 Update release notes
[skip ci]
2 months ago
dependabot[bot]
6c8112555b
⬆ Bump orjson from 3.11.7 to 3.11.8 ( #15276 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
428f82c936
📝 Update release notes
[skip ci]
2 months ago
dependabot[bot]
5599c59b9e
⬆ Bump ruff from 0.15.0 to 0.15.8 ( #15277 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
cc47796509
📝 Update release notes
[skip ci]
2 months ago
Sebastián Ramírez
9274097c30
👥 Update FastAPI GitHub topic repositories ( #15274 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
681146d90b
📝 Update release notes
[skip ci]
2 months ago
dependabot[bot]
cb4fe1b453
⬆ Bump fastmcp from 2.14.5 to 3.2.0 ( #15267 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
a15609f56d
📝 Update release notes
[skip ci]
2 months ago
Sebastián Ramírez
81194139aa
👥 Update FastAPI People - Contributors and Translators ( #15270 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
d128a7089a
📝 Update release notes
[skip ci]
2 months ago
dependabot[bot]
3b9d8481c5
⬆ Bump requests from 2.32.5 to 2.33.0 ( #15228 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
github-actions[bot]
937d3075f9
📝 Update release notes
[skip ci]
2 months ago
Sofie Van Landeghem
8238446b1b
👷 Add ty check to `lint.sh` ( #15136 )
2 months ago
github-actions[bot]
e2a0fd4ad8
📝 Update release notes
[skip ci]
2 months ago
Kadir Can Ozden
fa3588c38c
✏️ Fix typo for `client_secret` in OAuth2 form docstrings ( #14946 )
2 months ago
Sebastián Ramírez
25a3697ced
🔖 Release version 0.135.2
2 months ago
github-actions[bot]
ab125daa40
📝 Update release notes
[skip ci]
2 months ago
Sebastián Ramírez
122b6d490f
📝 Add missing last release notes dates ( #15202 )
2 months ago
github-actions[bot]
68ac0ab91e
📝 Update release notes
[skip ci]
2 months ago
Motov Yurii
ea6e287eb3
📝 Update docs for contributors and team members regarding translation PRs ( #15200 )
2 months ago
github-actions[bot]
d0a6f208c5
📝 Update release notes
[skip ci]
2 months ago
Motov Yurii
fd9e192cf4
💄 Fix code blocks in reference docs overflowing table width ( #15094 )
2 months ago
github-actions[bot]
fce9460f86
📝 Update release notes
[skip ci]
2 months ago
Motov Yurii
0227991a01
🔨 Exclude spam comments from statistics in `scripts/people.py` ( #15088 )
2 months ago
github-actions[bot]
cbd64b09a3
📝 Update release notes
[skip ci]
2 months ago
Sofie Van Landeghem
aeb9f4bb85
⬆️ Increase lower bound to `pydantic >=2.9.0.` and fix the test suite ( #15139 )
Co-authored-by: Motov Yurii <[email protected] >
2 months ago
github-actions[bot]
64feaec802
📝 Update release notes
[skip ci]
3 months ago
Sebastián Ramírez
12bbd9453f
🌐 Update translations for zh (update-outdated) ( #15177 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
3 months ago
github-actions[bot]
453988f359
📝 Update release notes
[skip ci]
3 months ago
Sebastián Ramírez
fe98ea307a
🌐 Update translations for zh-hant (update-outdated) ( #15178 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
3 months ago
github-actions[bot]
b7bd1874fe
📝 Update release notes
[skip ci]
3 months ago
dependabot[bot]
602ddc2e51
⬆ Bump authlib from 1.6.7 to 1.6.9 ( #15128 )
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sofie Van Landeghem <[email protected] >
3 months ago
github-actions[bot]
30bd2d5878
📝 Update release notes
[skip ci]
3 months ago
github-actions[bot]
a4e005c140
📝 Update release notes
[skip ci]
3 months ago