-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional accept functionality #2663
Closed
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
43c9a0a
Additional accept functionality
ahopkins 8eeb1c2
Unfinished hacks, moving to another machine.
Tronic e35286e
Rethinking of renderer selection logic, cleanup.
Tronic 7909f67
Handle empty/missing accept header more directly
Tronic dfe2148
Remove dubious or unnecessary handler types of response mapping.
Tronic 3ef9956
Refactor acceptable check to a helper function.
Tronic 52ecbb9
Note that base renderer can be changed.
Tronic c0ca555
Add back JSON detection by request body, but to be deprecated.
Tronic b8ae428
Move all errorpages work to another branch error-format-redux.
Tronic ec25581
Accept header choose() function removed and replaced by a more versat…
Tronic 8da10a9
Compatibility with older version.
Tronic 2e22319
Updated/removed tests due toe accept/mediatype complete API and seman…
Tronic 6472a69
More specific naming: mime is simple str, media_type may have q and r…
Tronic eae58e5
Minor cleanup.
Tronic 0e024b4
black
Tronic fd2e481
Merge branch 'main' into accept-enhance
Tronic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this being done? Is it ignoring q values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the class that this docstring is for? Operator
in
is the one fromlist
. Check the docs ofAcceptList.match
for how the order is determined (it considers q and order of both lists).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't check how the API docs render, but the class tries to give an overview, with the match function going to specifics of that rather complex matching logic. Hopefully that shows up decently.