TraceHttpRequestHeaders method

void TraceHttpRequestHeaders(
  1. TraceFlags traceType,
  2. IEwsHttpWebRequest request
)
Traces the HTTP request headers. Kind of trace entry. The request.

Implementation

void TraceHttpRequestHeaders(
    enumerations.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);
  }
}