We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using https://github.com/crim-ca/weaver/blob/master/weaver/formats.py utilities, most media-types can be resolved using a fallback lookup of the remote IANA registry. However, this additional request, when required, could potentially be avoided using https://docs.python.org/3/library/mimetypes.html
Perform local registry lookups (mimetypes.guess_type, mimetypes.guess_extension, mimetypes.types_map, etc.), as applicable, before attempting the fallback requests to remote registries.
mimetypes.guess_type
mimetypes.guess_extension
mimetypes.types_map
Note
remote lookup remains valid for non-IANA registries and for lookup of very-recent entries potentially not updated on the machine running the code
The text was updated successfully, but these errors were encountered:
fmigneault
No branches or pull requests
Description
Using https://github.com/crim-ca/weaver/blob/master/weaver/formats.py utilities, most media-types can be resolved using a fallback lookup of the remote IANA registry. However, this additional request, when required, could potentially be avoided using https://docs.python.org/3/library/mimetypes.html
Perform local registry lookups (
mimetypes.guess_type
,mimetypes.guess_extension
,mimetypes.types_map
, etc.), as applicable, before attempting the fallback requests to remote registries.Note
remote lookup remains valid for non-IANA registries and for lookup of very-recent entries potentially not updated on the machine running the code
References
The text was updated successfully, but these errors were encountered: