netty5/codec/src
Stephane Landelle e420f857fa Optimize DefaultHeaders#toString and implement HttpHeaders#toString
Motivation:

For debugging/logging purpose, it would be convenient to have
HttpHeaders#toString implemented.

DefaultHeaders does implement toString be the implementation is suboptimal and allocates a Set for the names and Lists for values.

Modification:

* Introduce HeadersUtil#toString that provides a convenient optimized helper to implement toString for various headers implementations
* Have DefaultHeaders#toString and HttpHeaders#toString delegate their toString implementation to HeadersUtil

Result:

Convenient HttpHeaders#toString. Optimized DefaultHeaders#toString.
2017-11-22 08:42:59 +01:00
..
main/java/io/netty/handler/codec Optimize DefaultHeaders#toString and implement HttpHeaders#toString 2017-11-22 08:42:59 +01:00
test Make methods 'static' where it possible 2017-10-21 14:59:26 +02:00