File tree Expand file tree Collapse file tree
src/main/java/software/amazon/awssdk/crt/http Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,24 +112,6 @@ public void cancel() {
112112 }
113113 }
114114
115- /**
116- * Cancels the stream with a specific error code.
117- * <p>
118- * For HTTP/1.1 streams, this is equivalent to closing the connection.
119- * For HTTP/2 streams, this sends a RST_STREAM frame with AWS_HTTP2_ERR_CANCEL.
120- * <p>
121- * The stream will complete with the provided error code, unless the stream is
122- * already completing for other reasons, or the stream is not activated,
123- * in which case this call will have no effect.
124- *
125- * @param errorCode The CRT error code to use when completing the stream.
126- */
127- public void cancel (int errorCode ) {
128- if (!isNull ()) {
129- httpStreamBaseCancel (getNativeHandle (), errorCode );
130- }
131- }
132-
133115 /*******************************************************************************
134116 * Native methods
135117 ******************************************************************************/
@@ -143,6 +125,4 @@ public void cancel(int errorCode) {
143125 private static native int httpStreamBaseGetResponseStatusCode (long http_stream );
144126
145127 private static native void httpStreamBaseCancelDefaultError (long http_stream );
146-
147- private static native void httpStreamBaseCancel (long http_stream , int error_code );
148128}
You can’t perform that action at this time.
0 commit comments