예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="HttpResponse"/> class.
        /// </summary>
        /// <param name="output">The HTTP response output.</param>
        public HttpResponse(IHttpResponseOutput output)
        {
            if (output == null)
            {
                throw new ArgumentNullException("output");
            }

            m_output = output;
            m_headerNames = new ResponseHeaderNames();
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MockHttpResponse"/> class.
 /// </summary>
 /// <param name="output">The HTTP response output.</param>
 public MockHttpResponse(IHttpResponseOutput output) : base(output)
 {
 }