/// <summary>
        /// Initializes a new instance of the <see cref="DefaultHttpResponseMessage"/> class.
        /// </summary>
        /// <param name="requestMessage">The request message</param>
        /// <param name="responseMessage">The response message to wrap</param>
        public DefaultHttpResponseMessage([NotNull] HttpRequestMessage requestMessage, [CanBeNull] HttpResponseMessage responseMessage)
        {
            ResponseMessage = responseMessage;
            RequestMessage = new DefaultHttpRequestMessage(requestMessage);

            if (responseMessage != null)
            {
                Content = responseMessage.Content.AsRestHttpContent();
                Headers = new DefaultHttpHeaders(responseMessage.Headers);
            }
            else
            {
                Content = null;
                Headers = new Portable.Impl.GenericHttpHeaders();
            }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DefaultHttpResponseMessage"/> class.
        /// </summary>
        /// <param name="requestMessage">The request message</param>
        /// <param name="responseMessage">The response message to wrap</param>
        public DefaultHttpResponseMessage([NotNull] HttpRequestMessage requestMessage, [CanBeNull] HttpResponseMessage responseMessage)
        {
            ResponseMessage = responseMessage;
            RequestMessage  = new DefaultHttpRequestMessage(requestMessage);

            if (responseMessage != null)
            {
                Content = responseMessage.Content.AsRestHttpContent();
                Headers = new DefaultHttpHeaders(responseMessage.Headers);
            }
            else
            {
                Content = null;
                Headers = new Portable.Impl.GenericHttpHeaders();
            }
        }