Skip to content

Suggestion to support Content Type parsing in HttpHeaders #4331

Closed
@Spikhalskiy

Description

HttpHeaders already has specific methods for such popular and simple headers like "Host", but if I need to convert POST raw body to string I need to parse complex ContentType header in my code.

Would be great to add two methods to HttpHeaders class to parse values from content-type header of message

<SomeWrapperForMimeType> HttpHeaders#getMIMETypeValue(HttpMessage message)
Charset HttpHeaders#getCharsetValue(HttpMessage message)

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions