Add StreamMessage.of(inputStream)#4703
Conversation
a68980d to
7c7de9c
Compare
|
@injae-kim Why don't you send a PR to https://github.com/softwaremill/tapir in which I left a TODO for this issue when a new version is released? 😉 |
oh~ after this PR is merged and released with new version, I'll also send PR to |
| if (this.blockingTaskExecutor != null) { | ||
| blockingTaskExecutor = this.blockingTaskExecutor; | ||
| } else { | ||
| final ServiceRequestContext serviceRequestContext = ServiceRequestContext.currentOrNull(); | ||
| if (serviceRequestContext != null) { | ||
| blockingTaskExecutor = serviceRequestContext.blockingTaskExecutor(); | ||
| } else { | ||
| blockingTaskExecutor = CommonPools.blockingTaskExecutor(); | ||
| } | ||
| } |
There was a problem hiding this comment.
I see some duplications between this class and PathStreamMessage. Can we deduplicate as much as possible, potentially introducing a common supertype?
There was a problem hiding this comment.
Can we deduplicate as much as possible, potentially introducing a common
supertype?
SGTM! but may I handle it with another issue & PR?
Cause I think we need some discussion about this issue 🙇
There was a problem hiding this comment.
If you want to handle it in a separate issue, it is okay to send a clean-up PR.
There was a problem hiding this comment.
I'll send clean-up PR after this PR is merged~!
jrhee17
left a comment
There was a problem hiding this comment.
In terms of correctness InputStreamStreamMessage looks good 👍 I think this PR is almost done! 🚀 Left only nit comments 🙇
jrhee17
left a comment
There was a problem hiding this comment.
The changeset looks good to me (bar the comment #4703 (comment) which I think you'll be following up on) 😄
Thanks @injae-kim 👍 🙇 👍
minwoox
left a comment
There was a problem hiding this comment.
Thanks! Left some suggestions and a question. 😄
minwoox
left a comment
There was a problem hiding this comment.
Thanks a lot for adding this nice feature! 👍 🙇 👍
796198e to
5898efa
Compare
trustin
left a comment
There was a problem hiding this comment.
👍 once all others comments are addressed.
…eamStreamMessage.java
…eamStreamMessage.java
…eamStreamMessageTest.java
Related Issue #3937
Motivation:
Modifications:
StreamMessage.of(inputStream)InputStreamStreamMessageand builderResult:
StreamMessage.of(inputStream)to convert anInputStreamtoStreamMessaeg<HttpData>that splits the binary by the bufferSizeStreamMessage.of(inputStream, bufferSize)#3937 issue