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.

Add support to ContentTypeParser for storing content type parameters

See original GitHub issue

Currently, ContentTypeParser strips off any parameters to the content type, and discards them. We should extend this class to preserve these parameters in some way in the metadata.

Examples:

  • application/json; charset=utf-8
  • application/ld+json; profile="https://www.w3.org/ns/activitystreams"

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
joachimvhcommented, Mar 14, 2022

Added in #1196

0reactions
RubenVerborghcommented, Feb 10, 2022

The above proposal looks good to me, actually!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add support to ContentTypeParser for storing content type ...
I've got the code to extract the parameters as well as the contentType value. I would just needs some help as to under...
Read more >
ContentTypeParser - Fastify
Content -Type Parser. Natively, Fastify only supports 'application/json' and 'text/plain' content types. If the content type is not one of these, ...
Read more >
Header parameters: "Accept" and "Content-type" in a REST ...
In responses, a Content-Type header tells the client what the content type of the returned content actually is. Browsers will do MIME sniffing...
Read more >
Handle content types - Azure Logic Apps - Microsoft Learn
Learn how to handle various content types in workflows during design time and run time in Azure Logic Apps.
Read more >
content-type-parser v1.0.2 - npm.io
This package will parse the Content-Type header field into an introspectable data structure, whose parameters can be manipulated:
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