Пример #1
0
        /// <summary>Writes the batch as a response into a stream (including the status line, headers and everything)</summary>
        /// <param name="stream">The stream to write the response to.</param>
        public void WriteResponse(Stream stream)
        {
            InMemoryWebRequest response = new InMemoryWebRequest();

            this.WriteResponse(response);
            response.WriteResponse(stream);
        }
Пример #2
0
 /// <summary>Writes the batch as a response into a stream (including the status line, headers and everything)</summary>
 /// <param name="stream">The stream to write the response to.</param>
 public void WriteResponse(Stream stream)
 {
     InMemoryWebRequest response = new InMemoryWebRequest();
     this.WriteResponse(response);
     response.WriteResponse(stream);
 }