// 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.AspNetCore.Mvc;
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(HttpResponseMessage response)
: base(response)
{
if (response == null)
{
throw new ArgumentNullException(nameof(response));
}
Response = response;
}
///
/// Gets the response message.
///
public HttpResponseMessage Response { get; private set; }
}
}