Skip to content

Commit

Permalink
Update Documentation for onResponseHeaders Callback (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 authored Jan 25, 2024
1 parent 75d45bf commit 73d4171
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crt/aws-c-io
Submodule aws-c-io updated 1 files
+5 −1 source/event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
public interface S3MetaRequestResponseHandler {

/**
* Invoked to provide response headers received during execution of the meta request, both for
* success and error HTTP status codes.
* Invoked to provide response headers received during the execution of the meta request.
* Note: the statusCode in this callback is not the final statusCode. It is possible that the statusCode in `onResponseHeaders`
* is 200, and then the request fail leading to a different statusCode in the final `onFinished` callback.
*
* @param statusCode statusCode of the HTTP response
* @param headers the headers received
Expand All @@ -31,7 +32,7 @@ default void onResponseHeaders(final int statusCode, final HttpHeader[] headers)
* Whenever the flow-control window reaches zero, data will stop downloading.
* To keep data flowing, you must increment the window by returning a number
* from this method, or by calling {@link S3MetaRequest#incrementReadWindow}.
* <p>
* </p>
* If backpressure is disabled, you do not need to maintain the flow-control window,
* data will arrive as fast as possible.
*
Expand Down

0 comments on commit 73d4171

Please sign in to comment.