GetResponseStream static method

Stream GetResponseStream(
  1. IEwsHttpWebResponse response
)
Gets the response stream (may be wrapped with GZip/Deflate stream to decompress content) HttpWebResponse.

Implementation

static Stream GetResponseStream(IEwsHttpWebResponse response) {
  String contentEncoding = response.ContentEncoding;
  Stream responseStream = response.GetResponseStream();

  return _WrapStream(
      responseStream as Stream<List<int>>, response.ContentEncoding);
}