Replies: 1 comment 5 replies
-
@yawkat |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is required to "upload" a programmatically generated content. The content might be large an it is not desired to store the entire content in memory at any given time. I am trying to use a low-level HttpClient for this.
This is not documented here, here nor here, but I was able to find some hints (1, 2) that this might be allowed.
I have some code that sends JSON requests to some server and I've tweaked it to do the following:
When I run the code against a real server, I see that:
.doOnSubscribe(...)
that is never called)Transfer-Encoding: chunked
, but then there's no more traces of the body being sent, so maybe it is never sent (tracing is done with<logger name="io.micronaut.http.client" level="TRACE"/>
)curl
to send an identical message to the server, chunked encoded, and I get successBecause of all the magic and the abstractions, it is really not clear what's wrong. I expected
Mono.just(jsonString)
to work without issue.From the documentation, it's unclear what is the relationship between
Flux
,Mono
and content type.Can you please help explain what might be wrong here, especially if the body is never sent to the server.
Note that the server and protocol cannot be changed.
Mono.just()
is used here only as a first step, to see that it works (it does not).Using Micronaut v3.10.1
Beta Was this translation helpful? Give feedback.
All reactions