FormatHttpResponseHeaders static method

String FormatHttpResponseHeaders(
  1. IEwsHttpWebResponse response
)
Format response HTTP headers. The HTTP response.

Implementation

static String FormatHttpResponseHeaders(IEwsHttpWebResponse response) {
  StringBuffer sb = new StringBuffer();
  sb.write("HTTP/? ${response.StatusCode} ${response.StatusDescription}\n");

  sb.write(EwsUtilities.FormatHttpHeaders(response.Headers));
  sb.write("\n");
  return sb.toString();
}