Parse and expose mediatypes parameters
See original GitHub issue- Feature Request. Start by telling us what problem you’re trying to solve. Often a solution already exists! Don’t send pull requests to implement new features without first getting our support. Sometimes we leave features out on purpose to keep the project small.
Currently MediaType
class doesn’t handle media-type parameters. This would be useful to be able to parse the parameters of received media-types, as per RFC 6838 §4.3.
This is could be handy client side when defining constants. Of course one can use strings for those constants. But this could avoid typing errors. I’m exploring the idea of media-type parameters to express API versions.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
mediatype.go - - The Go Programming Language
Media types are the values in 131 // Content-Type and Content-Disposition headers (RFC 2183). 132 // On success, ParseMediaType returns the media type ......
Read more >API — Flask-RESTX 1.0.4.dev documentation - Read the Docs
Parses argument value(s) from the request, converting according to the argument's type. Parameters: request – The flask request object to parse arguments from ......
Read more >XML Media Types draft-murata-kohn-lilley-xml-04.txt - W3C
To enable the exchange of XML network entities, this document standardizes three media types -- application/xml, application/xml-external-parsed-entity, and ...
Read more >The Journey to Extensible Request Body Parsing for ...
The parsing action is responsible for processing the HTTP payload to prepare parameter values to invoke a controller method.
Read more >Parsers - Django REST framework
REST framework includes a number of built in Parser classes, that allow you to accept requests with various media types. There is also...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/square/okhttp/pull/5994/files
Nothing to me, this was all @swankjesse