Files
cefsharp/CefSharp/Response.cs
T
2014-11-18 14:28:06 +10:00

31 lines
706 B
C#

// Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp
{
public class Response : IResponse
{
public String RedirectUrl { get; private set; }
public ResponseAction Action { get; private set; }
public Response()
{
Action = ResponseAction.Continue;
}
public void Cancel()
{
Action = ResponseAction.Cancel;
}
public void Redirect(String url)
{
RedirectUrl = url;
Action = ResponseAction.Redirect;
}
}
}