Files
cefsharp/CefSharp/IRequest.cs
T
amaitland d5bde1cdfc Expose IFrame.LoadRequest
Add IFrame.CreateRequest to instantiate a new instance of the CefRequestWrapper
Was planning on using VC++ extensions methods, have yet to get that working, so for now just have a method on the IFrame interface directly.
2015-11-25 08:30:38 +10:00

46 lines
1.4 KiB
C#

// Copyright © 2010-2015 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;
using System.Collections.Specialized;
namespace CefSharp
{
public interface IRequest : IDisposable
{
/// <summary>
/// Request Url
/// </summary>
string Url { get; set; }
/// <summary>
/// Request Method GET/POST etc
/// </summary>
string Method { get; set; }
/// <summary>
/// Header Collection
/// NOTE: This collection is a copy of the underlying type, to make changes, take a reference to the collection,
/// make your changes, then reassign the collection. At some point this will be replaced with a proper wrapper.
/// </summary>
NameValueCollection Headers { get; set; }
/// <summary>
/// Post data
/// </summary>
IPostData PostData { get; }
/// <summary>
/// Get the transition type for this request.
/// Applies to requests that represent a main frame or sub-frame navigation.
/// </summary>
TransitionType TransitionType { get; }
/// <summary>
/// Gets a value indicating whether the request has been disposed of.
/// </summary>
bool IsDisposed { get; }
}
}