mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
31 lines
706 B
C#
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;
|
|
}
|
|
}
|
|
}
|