Skip to content

Commit

Permalink
Add getter for Http3ErrorCode.code (#297)
Browse files Browse the repository at this point in the history
Motivation:
Sometimes its useful to be able to also get the code as specified in the RFC.

Modifications:
Add getter.

Result:
Be able to also inspect the "raw code"

Co-authored-by: Norman Maurer <norman_maurer@apple.com>
  • Loading branch information
SaltedReed and normanmaurer committed May 15, 2024
1 parent 7ae6436 commit 2f3a56b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,8 @@ public enum Http3ErrorCode {
Http3ErrorCode(int code) {
this.code = code;
}

public int code() {
return code;
}
}

0 comments on commit 2f3a56b

Please sign in to comment.