/// <summary>
 /// Traces the HTTP request headers.
 /// </summary>
 /// <param name="traceType">Kind of trace entry.</param>
 /// <param name="request">The request.</param>
 internal void TraceHttpRequestHeaders(TraceFlags traceType, IEwsHttpWebRequest request)
 {
     if (this.IsTraceEnabledFor(traceType))
     {
         string traceTypeStr    = traceType.ToString();
         string headersAsString = EwsUtilities.FormatHttpRequestHeaders(request);
         string logMessage      = EwsUtilities.FormatLogMessage(traceTypeStr, headersAsString);
         this.TraceListener.Trace(traceTypeStr, logMessage);
     }
 }