/// <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); }
/// <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; }