} else {
this.lastModified = DateUtils.parseDate(lmString);
}
//the content encoding can be decided dynamically, based on the current state of the request
//as the decision to compress generally dependends on size and mime type
final ContentEncoding encoding = exchange.getAttachment(ContentEncoding.CONENT_ENCODING);
if(encoding != null) {
this.contentEncoding = encoding.getCurrentContentEncoding();
} else {
this.contentEncoding = exchange.getResponseHeaders().getFirst(Headers.CONTENT_ENCODING);
}
this.responseCode = exchange.getResponseCode();
}