To test:
# Start up local ASGI server using Uvicorn
pip install fastapi
pip install uvicorn
uvicorn main:app --reload
You can issue a POST request to localhost/upload_image
. The response is a 307 redirect to /redirect
and ultimately returns the entire request body originally passed into /get_image
: