Package software.amazon.awssdk.crt.http
Class HttpStreamManagerOptions
- java.lang.Object
-
- software.amazon.awssdk.crt.http.HttpStreamManagerOptions
-
public class HttpStreamManagerOptions extends Object
Contains all the configuration options for a Http2StreamManager instance
-
-
Constructor Summary
Constructors Constructor Description HttpStreamManagerOptions()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpVersiongetExpectedProtocol()HttpClientConnectionManagerOptionsgetHTTP1ConnectionManagerOptions()Http2StreamManagerOptionsgetHTTP2StreamManagerOptions()HttpStreamManagerOptionswithExpectedProtocol(HttpVersion expectedProtocol)The expected protocol for whole stream manager.HttpStreamManagerOptionswithHTTP1ConnectionManagerOptions(HttpClientConnectionManagerOptions connectionManagerOptions)The connection manager options for the HTTP/1.1 stream manager.HttpStreamManagerOptionswithHTTP2StreamManagerOptions(Http2StreamManagerOptions streamManagerOptions)The stream manager options for the HTTP/2 stream manager.
-
-
-
Method Detail
-
withHTTP1ConnectionManagerOptions
public HttpStreamManagerOptions withHTTP1ConnectionManagerOptions(HttpClientConnectionManagerOptions connectionManagerOptions)
The connection manager options for the HTTP/1.1 stream manager. Controls the behavior for HTTP/1 connections.- Parameters:
connectionManagerOptions- The connection manager options for the underlying HTTP/1.1 stream manager- Returns:
- this
-
getHTTP1ConnectionManagerOptions
public HttpClientConnectionManagerOptions getHTTP1ConnectionManagerOptions()
- Returns:
- The connection manager options for the HTTP/1.1 stream manager.
-
withHTTP2StreamManagerOptions
public HttpStreamManagerOptions withHTTP2StreamManagerOptions(Http2StreamManagerOptions streamManagerOptions)
The stream manager options for the HTTP/2 stream manager. Controls the behavior for HTTP/2 connections.- Parameters:
streamManagerOptions- The stream manager options for the underlying HTTP/2 stream manager- Returns:
- this
-
getHTTP2StreamManagerOptions
public Http2StreamManagerOptions getHTTP2StreamManagerOptions()
- Returns:
- The stream manager options for the HTTP/2 stream manager.
-
withExpectedProtocol
public HttpStreamManagerOptions withExpectedProtocol(HttpVersion expectedProtocol)
The expected protocol for whole stream manager. Default to UNKNOWN. - UNKNOWN: Default to use HTTP/2, but if server returns an HTTP/1.1 connection back, fallback to the HTTP/1.1 pool - HTTP2: ONLY HTTP/2 - HTTP_1_1/HTTP_1_0: ONLY HTTP/1 and HTTP/1.1- Parameters:
expectedProtocol- The stream manager options for the underlying HTTP/2 stream manager- Returns:
- this
-
getExpectedProtocol
public HttpVersion getExpectedProtocol()
- Returns:
- The expected protocol for whole stream manager
-
-