Skip to content

Commit

Permalink
docstrings: fix return values in JvmFilterContext (#1066)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Schore <mike.schore@gmail.com>
Signed-off-by: JP Simard <jp@jpsim.com>
  • Loading branch information
goaway authored and jpsim committed Nov 28, 2022
1 parent 3cd6b36 commit d7a8df9
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void passHeader(byte[] key, byte[] value, boolean start) {
*
* @param headerCount, the total number of headers included in this header block.
* @param endStream, whether this header block is the final remote frame.
* @return Object, not used for request filter.
* @return Object[], pair of HTTP filter status and optional modified headers.
*/
public Object onRequestHeaders(long headerCount, boolean endStream) {
assert bridgeUtility.validateCount(headerCount);
Expand All @@ -47,7 +47,7 @@ public Object onRequestHeaders(long headerCount, boolean endStream) {
*
* @param data, chunk of body data from the HTTP request.
* @param endStream, indicates this is the last remote frame of the stream.
* @return Object, not used for request filter.
* @return Object[], pair of HTTP filter status and optional modified data.
*/
public Object onRequestData(byte[] data, boolean endStream) {
ByteBuffer dataBuffer = ByteBuffer.wrap(data);
Expand All @@ -58,7 +58,7 @@ public Object onRequestData(byte[] data, boolean endStream) {
* Invokes onTrailers callback using trailers passed via passHeaders.
*
* @param trailerCount, the total number of trailers included in this header block.
* @return Object, not used for request filter.
* @return Object[], pair of HTTP filter status and optional modified trailers.
*/
public Object onRequestTrailers(long trailerCount) {
assert bridgeUtility.validateCount(trailerCount);
Expand All @@ -71,7 +71,7 @@ public Object onRequestTrailers(long trailerCount) {
*
* @param headerCount, the total number of headers included in this header block.
* @param endStream, whether this header block is the final remote frame.
* @return Object, not used for response filter.
* @return Object[], pair of HTTP filter status and optional modified headers.
*/
public Object onResponseHeaders(long headerCount, boolean endStream) {
assert bridgeUtility.validateCount(headerCount);
Expand All @@ -84,7 +84,7 @@ public Object onResponseHeaders(long headerCount, boolean endStream) {
*
* @param data, chunk of body data from the HTTP response.
* @param endStream, indicates this is the last remote frame of the stream.
* @return Object, not used for response filter.
* @return Object[], pair of HTTP filter status and optional modified data.
*/
public Object onResponseData(byte[] data, boolean endStream) {
ByteBuffer dataBuffer = ByteBuffer.wrap(data);
Expand All @@ -95,7 +95,7 @@ public Object onResponseData(byte[] data, boolean endStream) {
* Invokes onTrailers callback using trailers passed via passHeaders.
*
* @param trailerCount, the total number of trailers included in this header block.
* @return Object, not used for response filter.
* @return Object[], pair of HTTP filter status and optional modified trailers.
*/
public Object onResponseTrailers(long trailerCount) {
assert bridgeUtility.validateCount(trailerCount);
Expand Down

0 comments on commit d7a8df9

Please sign in to comment.