Added HttpMessage.removeHeader()
This commit is contained in:
parent
ec33095eb7
commit
5bed9f4bc4
@ -66,6 +66,10 @@ public class DefaultHttpMessage implements HttpMessage {
|
||||
headers.put(name, values);
|
||||
}
|
||||
|
||||
public void removeHeader(final String name) {
|
||||
headers.remove(name);
|
||||
}
|
||||
|
||||
public int getContentLength() {
|
||||
List<String> contentLength = headers.get(HttpHeaders.CONTENT_LENGTH);
|
||||
if (contentLength != null && contentLength.size() > 0) {
|
||||
|
@ -50,6 +50,8 @@ public interface HttpMessage {
|
||||
|
||||
void setHeader(String name, List<String> values);
|
||||
|
||||
void removeHeader(String name);
|
||||
|
||||
int getContentLength();
|
||||
|
||||
void setContent(ChannelBuffer content);
|
||||
|
Loading…
Reference in New Issue
Block a user