Interface RestMultiResponse<T>

All Superinterfaces:
Flow.Publisher<T>, io.smallrye.mutiny.Multi<T>

public interface RestMultiResponse<T> extends io.smallrye.mutiny.Multi<T>
A Multi that also provides non-blocking access to the HTTP response metadata (status code, headers) via response().

Returned by REST Client methods that consume streaming responses (SSE, newline-delimited JSON, or chunked) when response metadata is needed alongside the event stream.

  • Method Summary

    Modifier and Type
    Method
    Description
    io.smallrye.mutiny.Uni<BasicRestResponse>
    Returns a Uni that completes when the HTTP response is received, before any stream items are emitted

    Methods inherited from interface java.util.concurrent.Flow.Publisher

    subscribe

    Methods inherited from interface io.smallrye.mutiny.Multi

    attachContext, broadcast, cache, call, call, capDemandsTo, capDemandsUsing, collect, concatMap, convert, emitOn, emitOn, filter, flatMap, group, ifNoItem, invoke, invoke, log, log, map, onCancellation, onCompletion, onFailure, onFailure, onFailure, onItem, onOverflow, onRequest, onSubscription, onTermination, paceDemand, pauseDemand, plug, runSubscriptionOn, select, skip, split, stage, subscribe, toHotStream, toUni, withContext
  • Method Details

    • response

      io.smallrye.mutiny.Uni<BasicRestResponse> response()
      Returns a Uni that completes when the HTTP response is received, before any stream items are emitted