-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending Multi<Byte> as files in multipart in REST Client Reactive #21569
Sending Multi<Byte> as files in multipart in REST Client Reactive #21569
Conversation
30a4eb1
to
44c8956
Compare
@@ -68,7 +68,7 @@ public RestClientData getClientData() { | |||
|
|||
public RestClientData(List<RestClientInfo> clients, List<PossibleRestClientInfo> possibleClients) { | |||
this.clients = clients; | |||
this.possibleClients = possibleClients; | |||
this.possibleClients = possibleClients; // TODO: present this info |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not related to this PR, I just didn't want to lose this TODO
e3d9f4d
to
ffa1704
Compare
This workflow status is outdated as a new workflow run has been triggered. |
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building ffa1704
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 11 #- Failing: integration-tests/oidc-code-flow
📦 integration-tests/oidc-code-flow✖
|
ffa1704
to
d567ab0
Compare
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building d567ab0
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 17 #- Failing: extensions/smallrye-reactive-messaging-kafka/deployment
! Skipped: integration-tests/kafka-oauth-keycloak integration-tests/kafka-sasl-elytron integration-tests/kubernetes/quarkus-standard-way-kafka and 2 more 📦 extensions/smallrye-reactive-messaging-kafka/deployment✖
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good. I would need to test it more.
There are some complicated classes that would deserve a bit of doc.
import org.jboss.logging.Logger; | ||
import org.reactivestreams.Subscription; | ||
|
||
public class MultiByteHttpData extends AbstractHttpData implements FileUpload { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should explain how this class is intended to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some javadoc.
@@ -133,6 +160,10 @@ public Buffer content() { | |||
return content; | |||
} | |||
|
|||
public Multi<Byte> multiByteContent() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something we could improve (later) is to also support Multi<byte[]>, because it's what you receive most of the time (chunks, not bytes one by one).
d567ab0
to
b224f95
Compare
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building b224f95
Failures⚙️ Initial JDK 11 Build #- Failing: independent-projects/resteasy-reactive/client/runtime
! Skipped: devtools/bom-descriptor-json docs extensions/agroal/deployment and 214 more 📦 independent-projects/resteasy-reactive/client/runtime✖ |
b224f95
to
395c5f0
Compare
No description provided.