2025-04-27 07:49:33 -04:00

42 lines
947 B
C++

// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// HEADER.CPP
//
// HTTP header cache implementation.
//
//
// Copyright 1997 Microsoft Corporation, All Rights Reserved
//
#include "_davprs.h"
#include <buffer.h>
#include "header.h"
#include <tchar.h>
// ========================================================================
//
// CLASS CHeaderCache
//
// ------------------------------------------------------------------------
//
// CHeaderCacheForResponse::DumpData()
// CHeaderCacheForResponse::CEmit::operator()
//
// Dump headers to a string buffer.
//
void CHeaderCacheForResponse::DumpData( StringBuffer<CHAR>& bufData ) const
{
CEmit emit(bufData);
// Iterate over all cache items, emitting each to our buffer
// The cache controls the iteration here; we just provide
// the operation to apply to each iterated item.
//
m_cache.ForEach( emit );
}