FastAPI makes processing Headers very easy, just like everything else. There are two ways to process headers with FastAPI.
For one of my project, I needed to host an API service on the RapidAPI platform. In order to make sure that all the requests to the application are routed via RapidAPI I needed to check special header sent by RapidAPI.
Since I am not able to sleep, I started thinking about “incorrect” interview questions.
I was trying to setup local postgres via docker, and wanted to see if my default user was created. I found out that there is more than one way to skin the cat.