Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
947 B

  1. // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2. //
  3. // HEADER.CPP
  4. //
  5. // HTTP header cache implementation.
  6. //
  7. //
  8. // Copyright 1997 Microsoft Corporation, All Rights Reserved
  9. //
  10. #include "_davprs.h"
  11. #include <buffer.h>
  12. #include "header.h"
  13. #include <tchar.h>
  14. // ========================================================================
  15. //
  16. // CLASS CHeaderCache
  17. //
  18. // ------------------------------------------------------------------------
  19. //
  20. // CHeaderCacheForResponse::DumpData()
  21. // CHeaderCacheForResponse::CEmit::operator()
  22. //
  23. // Dump headers to a string buffer.
  24. //
  25. void CHeaderCacheForResponse::DumpData( StringBuffer<CHAR>& bufData ) const
  26. {
  27. CEmit emit(bufData);
  28. // Iterate over all cache items, emitting each to our buffer
  29. // The cache controls the iteration here; we just provide
  30. // the operation to apply to each iterated item.
  31. //
  32. m_cache.ForEach( emit );
  33. }