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
An HttpStream represents a single HTTP/2 specific Http Request/Response.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.awssdk.crt.http.HttpStreamBase
HttpStreamBase.HttpStreamWriteDataCompletionCallbackNested classes/interfaces inherited from class software.amazon.awssdk.crt.CrtResource
CrtResource.ResourceInstance -
Method Summary
Modifier and TypeMethodDescriptionvoidresetStream(Http2ClientConnection.Http2ErrorCode errorCode) Reset the HTTP/2 stream.Methods inherited from class software.amazon.awssdk.crt.http.HttpStreamBase
activate, cancel, getResponseStatusCode, incrementWindow, writeData, writeDataMethods inherited from class software.amazon.awssdk.crt.CrtResource
addRef, addRef, addReferenceTo, close, close, collectNativeResource, collectNativeResources, decRef, decRef, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, logNativeResources, removeReferenceTo, setDescription, waitForNoResources
-
Method Details
-
resetStream
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.
-