Interface BareResponse

    • Method Detail

      • whenHeadersCompleted

        Single<BareResponse> whenHeadersCompleted()
        Returns a Single of headers part of this response. The stage is completed when all headers are sent to the client.
        Returns:
        a completion stage of the response.
      • whenCompleted

        Single<BareResponse> whenCompleted()
        Returns a Single of this response. The stage is completed when all response data are sent or response channel is finished.
        Returns:
        a completion stage of the response.
      • backpressureStrategy

        void backpressureStrategy​(BackpressureStrategy backpressureStrategy)
        Set the backpressure strategy used for requesting response data.
        Parameters:
        backpressureStrategy - strategy used for requesting response data
      • onError

        void onError​(Throwable thr)
        Response should be flushed and closed.

        This method can be called without a subscription or demand. HTTP IO must be able to handle it.

        Specified by:
        onError in interface Flow.Subscriber<DataChunk>
        Parameters:
        thr - an error.
      • onComplete

        void onComplete()
        Response should be flushed and closed.

        This method can be called without a subscription or demand. HTTP IO must be able to handle it.

        Specified by:
        onComplete in interface Flow.Subscriber<DataChunk>
      • requestId

        long requestId()
        A unique correlation ID that is associated with this response and its associated request.
        Returns:
        a unique correlation ID associated with this response and its request