Click or drag to resize
IRequest Interface
Version 63.0.0
Class used to represent a web request. The methods of this class may be called on any thread.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 63.0.0.0 (63.0.0.0)
Syntax
public interface IRequest : IDisposable

The IRequest type exposes the following members.

Properties
  NameDescription
Public propertyFlags
Get/Set request flags, can be used to control caching policy
Public propertyHeaders
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.
Public propertyIdentifier
Returns the globally unique identifier for this request or 0 if not specified. Can be used by IRequestHandler implementations in the browser process to track a single request across multiple callbacks.
Public propertyIsDisposed
Gets a value indicating whether the request has been disposed of.
Public propertyIsReadOnly
Returns true if this object is read-only.
Public propertyMethod
Request Method GET/POST etc
Public propertyPostData
Post data
Public propertyReferrerPolicy
Get the referrer policy.
Public propertyReferrerUrl
Get the referrer URL.
Public propertyResourceType
Get the resource type for this request.
Public propertyTransitionType
Get the transition type for this request. Applies to requests that represent a main frame or sub-frame navigation.
Public propertyUrl
Request Url
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodInitializePostData
Initialize a new instance of IPostData. Make sure to check if the PostData is null before calling otherwise the existing data will be overridden.
Public methodSetReferrer
Set the referrer URL and policy. If non-empty the referrer URL must be fully qualified with an HTTP or HTTPS scheme component. Any username, password or ref component will be removed.
Top
Extension Methods
  NameDescription
Public Extension MethodGetCharSet
A convenience extension method that extracts the Character set from the content-type header. Can be used in conjuncation with GetBody(IPostDataElement, String)
(Defined by PostDataExtensions.)
Top
See Also