FormatHttpHeaders static method

String FormatHttpHeaders(
  1. WebHeaderCollection headers
)
Formats HTTP headers. The headers.

Implementation

static String FormatHttpHeaders(WebHeaderCollection headers) {
  StringBuffer sb = new StringBuffer();
  for (String key in headers.AllKeys) {
    sb.write("$key: ${headers[key]}\n");
  }
  return sb.toString();
}