Example #1
0
void DefaultHttpHeader::addHeader(int h, int i, const std::string& name, const std::string& value) {
    // Update the hash table.
    Entry* e = entries[i];
    Entry* entry;
    entries[i] = entry = newEntry(h, name, value);
    entry->next = e;

    // Update the linked list.
    entry->addBefore(head);
}