Exemplo n.º 1
0
        /// <summary>
        /// Set the given <paramref name="request"/> to this response.
        /// </summary>
        /// <param name="request">
        /// A handle to the request at the origin of this response.
        /// </param>
        /// <returns>
        /// Return this response.
        /// </returns>
        public HttpResponse SetRequest(ReadOnlyHttpRequest request)
        {
            Request = request;

            return(this);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Set the given <paramref name="request"/> to this response.
        /// </summary>
        /// <param name="request">
        /// The request at the origin of this response.
        /// </param>
        /// <returns>
        /// Return this response.
        /// </returns>
        public HttpResponse SetRequest(HttpRequest request)
        {
            Request = new ReadOnlyHttpRequest(request);

            return(this);
        }