// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Net.Http;
using Microsoft.AspNet.Mvc;
using Microsoft.Framework.Internal;
namespace System.Web.Http
{
///
/// An action result that returns a specified response message.
///
public class ResponseMessageResult : ObjectResult
{
///
/// Initializes a new instance of the class.
///
/// The response message.
public ResponseMessageResult([NotNull] HttpResponseMessage response)
: base(response)
{
Response = response;
}
///
/// Gets the response message.
///
public HttpResponseMessage Response { get; private set; }
}
}