netty5/codec-http/src/main/java/io/netty/handler/codec/http/cors
Dmitriy Dumanskiy ff7484864b Compare HttpMethod by reference (#8815)
Motivation:

In most cases, HttpMethod instance is built from the factory method and the same instance is taken for known Http Methods. So we can implement fast path for equals().

Modification:

Replace == checks with HttpMethod.equals;
Use this == o within HttpMethod.equals;
Replaced known new HttpMethod with HttpMethod.valueOf;
Result:

Comparisons should be a bit faster in some cases.
2019-01-30 21:17:00 +01:00
..
CorsConfig.java fix the typos 2017-04-20 04:56:09 +02:00
CorsConfigBuilder.java Fix typos in docs. 2018-02-14 08:44:07 +01:00
CorsHandler.java Compare HttpMethod by reference (#8815) 2019-01-30 21:17:00 +01:00
package-info.java Adding a Cross Origin Resource Sharing (CORS) handler. 2014-01-16 08:18:16 +01:00