Search code examples
micronautreactive-streams

How to get a value from Publisher response Micronaut


I'm using Micronaut and I need to get the response from a doFilter like Publisher<MutableHttpResponse<*>>, but in the unit test, I can't get the value response in the stream. Can Someone Help me?

The image show the answer of the request


Solution

  • You have to .subscribe() to a Publisher to get the emitted values. Make sure to get your Reactive 101 in place! 😀