question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
yschimkecommented, May 1, 2020

Nothing to me, this was all @swankjesse

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found