@@ -139,7 +139,8 @@ typedef void(aws_http_message_transform_fn)(
139139 * This is always invoked on the HTTP connection's event-loop thread.
140140 *
141141 * Return AWS_OP_SUCCESS to continue processing the stream.
142- * Return AWS_OP_ERR to indicate failure and cancel the stream.
142+ * Return aws_raise_error(E) to indicate failure and cancel the stream.
143+ * The error you raise will be reflected in the error_code passed to the on_complete callback.
143144 */
144145typedef int (aws_http_on_incoming_headers_fn )(
145146 struct aws_http_stream * stream ,
@@ -153,7 +154,8 @@ typedef int(aws_http_on_incoming_headers_fn)(
153154 * This is always invoked on the HTTP connection's event-loop thread.
154155 *
155156 * Return AWS_OP_SUCCESS to continue processing the stream.
156- * Return AWS_OP_ERR to indicate failure and cancel the stream.
157+ * Return aws_raise_error(E) to indicate failure and cancel the stream.
158+ * The error you raise will be reflected in the error_code passed to the on_complete callback.
157159 */
158160typedef int (aws_http_on_incoming_header_block_done_fn )(
159161 struct aws_http_stream * stream ,
@@ -171,7 +173,8 @@ typedef int(aws_http_on_incoming_header_block_done_fn)(
171173 * aws_http_stream_update_window().
172174 *
173175 * Return AWS_OP_SUCCESS to continue processing the stream.
174- * Return AWS_OP_ERR to indicate failure and cancel the stream.
176+ * Return aws_raise_error(E) to indicate failure and cancel the stream.
177+ * The error you raise will be reflected in the error_code passed to the on_complete callback.
175178 */
176179typedef int (
177180 aws_http_on_incoming_body_fn )(struct aws_http_stream * stream , const struct aws_byte_cursor * data , void * user_data );
@@ -181,7 +184,8 @@ typedef int(
181184 * This is always invoked on the HTTP connection's event-loop thread.
182185 *
183186 * Return AWS_OP_SUCCESS to continue processing the stream.
184- * Return AWS_OP_ERR to indicate failure and cancel the stream.
187+ * Return aws_raise_error(E) to indicate failure and cancel the stream.
188+ * The error you raise will be reflected in the error_code passed to the on_complete callback.
185189 */
186190typedef int (aws_http_on_incoming_request_done_fn )(struct aws_http_stream * stream , void * user_data );
187191
0 commit comments