edgedb-python
edgedb-python copied to clipboard
fastapi: support dual JSON and WWW form
- The request body is handled depending on the
Content-Typeheader in the request. - If no
Content-Typeheader is found, the first type inutils.OneOf()will be assumed. - If the
Content-Typedoesn't match any of theutils.OneOf()types, the route won't match (and you'll likely get a 404)