private long getContentLength(HttpMessage message, int defaultValue) { String value = message.getHeader("Content-Length"); if (FastIntegerParser.isNumber(value)) { return FastIntegerParser.parseLong(value); } return defaultValue; }
private long getContentLength(HttpMessage message) { return FastIntegerParser.parseInt(message.getHeader("Content-Length")); }