Exemplo n.º 1
0
        /// <summary>Creates the in-memory response from a stream.</summary>
        /// <param name="stream">The stream to read.</param>
        /// <returns>The newly created request object with the response properties filled with the data from the stream.</returns>
        public static InMemoryWebRequest FromResponse(Stream stream)
        {
            InMemoryWebRequest response = new InMemoryWebRequest();

            response.ParseResponse(stream);
            return(response);
        }
Exemplo n.º 2
0
 /// <summary>Creates the in-memory response from a stream.</summary>
 /// <param name="stream">The stream to read.</param>
 /// <returns>The newly created request object with the response properties filled with the data from the stream.</returns>
 public static InMemoryWebRequest FromResponse(Stream stream)
 {
     InMemoryWebRequest response = new InMemoryWebRequest();
     response.ParseResponse(stream);
     return response;
 }