HttpResponseStatus equals operator

Trustin Lee trustin at gmail.com
Thu May 27 08:25:20 EDT 2010


A reason phrase of an HTTP response can be different from each other even if
they have the same status code.  Therefore, Netty creates a new
HttpResponseStatus instance for each response and thus you cannot use ==. 
You have to call getCode() to compare the actual status code.

HTH,
Trustin

-----
— Trustin Lee, http://gleamynode.net/
-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/HttpResponseStatus-equals-operator-tp5092008p5108288.html
Sent from the Netty User Group mailing list archive at Nabble.com.



More information about the netty-users mailing list