Class InputStreamAdaptingHttpStreamResponseHandler

  • All Implemented Interfaces:
    software.amazon.awssdk.crt.http.HttpStreamResponseHandler

    public final class InputStreamAdaptingHttpStreamResponseHandler
    extends Object
    implements software.amazon.awssdk.crt.http.HttpStreamResponseHandler
    Response handler adaptor for AwsCrtHttpClient.
    • Constructor Detail

      • InputStreamAdaptingHttpStreamResponseHandler

        public InputStreamAdaptingHttpStreamResponseHandler​(software.amazon.awssdk.crt.http.HttpClientConnection crtConn,
                                                            CompletableFuture<SdkHttpFullResponse> requestCompletionFuture)
    • Method Detail

      • onResponseHeaders

        public void onResponseHeaders​(software.amazon.awssdk.crt.http.HttpStream stream,
                                      int responseStatusCode,
                                      int blockType,
                                      software.amazon.awssdk.crt.http.HttpHeader[] nextHeaders)
        Specified by:
        onResponseHeaders in interface software.amazon.awssdk.crt.http.HttpStreamResponseHandler
      • onResponseBody

        public int onResponseBody​(software.amazon.awssdk.crt.http.HttpStream stream,
                                  byte[] bodyBytesIn)
        Specified by:
        onResponseBody in interface software.amazon.awssdk.crt.http.HttpStreamResponseHandler
      • onResponseComplete

        public void onResponseComplete​(software.amazon.awssdk.crt.http.HttpStream stream,
                                       int errorCode)
        Specified by:
        onResponseComplete in interface software.amazon.awssdk.crt.http.HttpStreamResponseHandler