Skip to content

Conversation

@scottf
Copy link
Contributor

@scottf scottf commented Oct 9, 2025

No description provided.

Copy link
Member

@aricart aricart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

public static final byte[] NOT_FOUND_CODE_BYTES = ("" + NOT_FOUND_CODE).getBytes();
public static final byte[] BAD_JS_REQUEST_CODE_BYTES = ("" + BAD_JS_REQUEST_CODE).getBytes();
public static final byte[] CONFLICT_CODE_BYTES = ("" + CONFLICT_CODE).getBytes();
public static final byte[] EOB_CODE_BYTES = ("" + EOB_CODE).getBytes();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need these - there were not released in any version, just a PR in this cycle

return valueAsString();
}

public Integer getIntValue() throws NumberFormatException {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed, this was just over engineering

else if (b == 'F') {
if (valueEquals(FLOW_CONTROL_TEXT_BYTES)) {
return FLOW_CONTROL_TEXT;
if (valueLength > 11) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since they are known text, this whole block is a little smarter instead of doing a bunch of byte array compares.

@scottf scottf merged commit 375e993 into main Oct 9, 2025
4 checks passed
@scottf scottf deleted the header-tune-dont-over-eng branch October 9, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants