forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support programmatic
multipart/form-data
responses
With these changes, users can also manually append the parts of the form using the class `MultipartFormDataOutput` as: ```java import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.server.core.multipart.MultipartFormDataOutput; @path("multipart") public class Endpoint { @get @produces(MediaType.MULTIPART_FORM_DATA) @path("file") public MultipartFormDataOutput getFile() { MultipartFormDataOutput form = new MultipartFormDataOutput(); form.addFormData("person", new Person("John"), MediaType.APPLICATION_JSON_TYPE); form.addFormData("status", "a status", MediaType.TEXT_PLAIN_TYPE) .getHeaders().putSingle("extra-header", "extra-value"); return form; } } ``` Fix quarkusio#28631 This last approach allows you adding extra headers to the output part. (cherry picked from commit 6967fbc)
- Loading branch information
Showing
14 changed files
with
221 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
265 changes: 0 additions & 265 deletions
265
...in/java/io/quarkus/resteasy/reactive/server/deployment/FormDataOutputMapperGenerator.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.