public class ResponseHandlerHelper extends Object
CrtResponseAdapter and
InputStreamAdaptingHttpStreamResponseHandler.
CRT connection will only be closed, i.e., not reused, in one of the following conditions:
1. 5xx server error OR
2. It fails to read the response OR
3. the response stream is closed/aborted by the caller.| Constructor and Description |
|---|
ResponseHandlerHelper(SdkHttpResponse.Builder responseBuilder,
software.amazon.awssdk.crt.http.HttpClientConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection(software.amazon.awssdk.crt.http.HttpStream stream)
Close the connection completely
|
void |
incrementWindow(software.amazon.awssdk.crt.http.HttpStream stream,
int windowSize) |
void |
onResponseHeaders(int responseStatusCode,
int headerType,
software.amazon.awssdk.crt.http.HttpHeader[] nextHeaders) |
void |
releaseConnection(software.amazon.awssdk.crt.http.HttpStream stream)
Release the connection back to the pool so that it can be reused.
|
public ResponseHandlerHelper(SdkHttpResponse.Builder responseBuilder, software.amazon.awssdk.crt.http.HttpClientConnection connection)
public void onResponseHeaders(int responseStatusCode,
int headerType,
software.amazon.awssdk.crt.http.HttpHeader[] nextHeaders)
public void releaseConnection(software.amazon.awssdk.crt.http.HttpStream stream)
public void incrementWindow(software.amazon.awssdk.crt.http.HttpStream stream,
int windowSize)
public void closeConnection(software.amazon.awssdk.crt.http.HttpStream stream)
Copyright © 2026. All rights reserved.