From 2f3a56b00ee85640d451fe5892314551bd6f998d Mon Sep 17 00:00:00 2001 From: SaltedReed <51510811+SaltedReed@users.noreply.github.com> Date: Wed, 15 May 2024 18:22:33 +1000 Subject: [PATCH] Add getter for Http3ErrorCode.code (#297) 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 --- .../java/io/netty/incubator/codec/http3/Http3ErrorCode.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/io/netty/incubator/codec/http3/Http3ErrorCode.java b/src/main/java/io/netty/incubator/codec/http3/Http3ErrorCode.java index c9c7d4fd..f4d6c2ed 100644 --- a/src/main/java/io/netty/incubator/codec/http3/Http3ErrorCode.java +++ b/src/main/java/io/netty/incubator/codec/http3/Http3ErrorCode.java @@ -126,4 +126,8 @@ public enum Http3ErrorCode { Http3ErrorCode(int code) { this.code = code; } + + public int code() { + return code; + } }