Last active
July 11, 2022 17:27
-
-
Save aoirint/870950ab3834b5d4e9aa27c82e1c4e43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fastapi==0.78.0 | |
from fastapi import FastAPI, Request | |
app = FastAPI() | |
@app.post('/') | |
async def index(request: Request): | |
print(request.headers) | |
print((await request.body()).decode('utf-8')) |
Author
aoirint
commented
Jul 11, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment