Map multipart/form-data to an Object
Katsute opened this issue · 2 comments
Katsute commented
Prerequisites
If all checks are not passed then the request will be closed.
- I have checked that no other similar feature request already exists.
- I have checked that this feature does not already exist.
- The feature request makes sense for the project.
Proposal
Describe the feature that should be added.
Add a method to retrieve object as a multipart/form-data (or null if unsupported)
Reasoning
Explain why this feature should be added.
Makes multipart/form-data even easier to access
Katsute commented
Implementing this system would have issue when differentiating between k/v and files since these fields can be manually filled. The parsing method would be unstable as a result of this.
Additional issues may also arise from parsing the string as bytes with incorrect encoding.
It is not feasible at this time, may be added in a future version.
Katsute commented
- All fields can be required.
- Input stream is parsed with UTF-8 encoding.