#include "StrList.h"
#include "TimeOrTag.h"
+#include <algorithm>
+
/*
* On naming conventions:
*
void
HttpHeader::compact()
{
- entries.prune(NULL);
+ std::remove(entries.begin(), entries.end(), static_cast<HttpHeaderEntry *>(NULL));
}
/*
else
CBIT_SET(mask, e->id);
- entries.insert(e);
+ entries.insert(entries.begin(),e);
/* increment header length, allow for ": " and crlf */
len += e->name.size() + 2 + e->value.size() + 2;
inline bool chunked() const; ///< whether message uses chunked Transfer-Encoding
/* protected, do not use these, use interface functions instead */
- Vector<HttpHeaderEntry *> entries; /**< parsed fields in raw format */
+ std::vector<HttpHeaderEntry *> entries; /**< parsed fields in raw format */
HttpHeaderMask mask; /**< bit set <=> entry present */
http_hdr_owner_type owner; /**< request or reply */
int len; /**< length when packed, not counting terminating null-byte */