A very, very rudimentary RFC 2324 implementation in NGINX site configuration.
https://gist.github.com/questionlp/07ad5a8a3f68340fda8aaf8fd100312c
A very, very rudimentary RFC 2324 implementation in NGINX site configuration.
https://gist.github.com/questionlp/07ad5a8a3f68340fda8aaf8fd100312c
I guess there isn't an easy way of implementing RFC 2324 with FastAPI?
Adding a limited implementation to a Flask web application was pretty darn easy 😅
https://github.com/questionlp/stats.wwdt.me/blob/main/app/main/routes.py
If you know, you know...
Both the / and /teapot routes return the same with sending an HTTP BREW request with the appropriate Content-Type.
A normal GET to /teapot will give you a nice little message.
The little easter egg message and not sending the correct Content-Type to / or /teapot with the BREW request type both incude a little nod to a certain something from #StarTrekDS9 😂