FormatHttpRequestHeaders static method

String FormatHttpRequestHeaders(
  1. IEwsHttpWebRequest request
)
Format request HTTP headers. The HTTP request.

Implementation

static String FormatHttpRequestHeaders(IEwsHttpWebRequest request) {
  StringBuffer sb = new StringBuffer();
  sb.write("${request.Method} ${request.RequestUri!.path} HTTP/1.1\n");
  EwsUtilities.FormatHttpHeadersWithBuffer(sb, request.Headers);
  sb.write("\n");

  return sb.toString();
}