+ if( key == "connection" ) {
+ _connectionCloseHeader = (value.find("close") != std::string::npos);
+ // track willClose seperately because other conditions (abort, for
+ // example) can also set it
+ _willClose = _connectionCloseHeader;
+ } else if (key == "content-length") {
+ int sz = strutils::to_int(value);
+ setResponseLength(sz);
+ }