Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve event loop locality of client requests #11300

Open
wants to merge 10 commits into
base: 4.8.x
Choose a base branch
from
Prev Previous commit
Next Next commit
Minor client optimizations
  • Loading branch information
yawkat committed Nov 1, 2024
commit 7c17bd094a9c3ddb282e3724272b949c64ae7796
11 changes: 11 additions & 0 deletions http/src/main/java/io/micronaut/http/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,17 @@ public interface HttpHeaders extends Headers {
X_AUTH_TOKEN
));

/**
* Whether the given key is contained within these values.
*
* @param name The key name
* @return True if it is
* @since 4.8.0
*/
default boolean contains(CharSequence name) {
return contains(name.toString());
}

/**
* Obtain the date header.
*
Expand Down