Package software.amazon.awssdk.crt.http
Class Http2Stream
- java.lang.Object
-
- software.amazon.awssdk.crt.CrtResource
-
- software.amazon.awssdk.crt.http.HttpStreamBase
-
- software.amazon.awssdk.crt.http.Http2Stream
-
- All Implemented Interfaces:
AutoCloseable
public class Http2Stream extends HttpStreamBase
An HttpStream represents a single HTTP/2 specific Http Request/Response.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.awssdk.crt.CrtResource
CrtResource.ResourceInstance
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
resetStream(Http2ClientConnection.Http2ErrorCode errorCode)
Reset the HTTP/2 stream.-
Methods inherited from class software.amazon.awssdk.crt.http.HttpStreamBase
activate, getResponseStatusCode, incrementWindow
-
Methods inherited from class software.amazon.awssdk.crt.CrtResource
addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, logNativeResources, removeReferenceTo, setDescription, waitForNoResources
-
-
-
-
Method Detail
-
resetStream
public void resetStream(Http2ClientConnection.Http2ErrorCode errorCode)
Reset the HTTP/2 stream. Note that if the stream closes before this async call is fully processed, the RST_STREAM frame will not be sent.- Parameters:
errorCode
- aws_http2_error_code. Reason to reset the stream.
-
-