Click or drag to resize

UrlRequest Class

Version 108.4.130
Class used to make a URL request. URL requests are not associated with a browser instance so no CefClient callbacks will be executed. URL requests can be created on any valid CEF thread in either the browser or render process. Once created the methods of the URL request object must be accessed on the same thread that created it.
Inheritance Hierarchy
SystemObject
  CefSharpUrlRequest

Namespace:  CefSharp
Assembly:  CefSharp.Core (in CefSharp.Core.dll) Version: 108.4.130.0
Syntax
public class UrlRequest : IUrlRequest, IDisposable

The UrlRequest type exposes the following members.

Constructors
  NameDescription
Public methodUrlRequest(IRequest, IUrlRequestClient)
Create a new URL request that is not associated with a specific browser or frame. Use CreateUrlRequest(IRequest, IUrlRequestClient) instead if you want the request to have this association, in which case it may be handled differently. For requests originating from the browser process: It may be intercepted by the client via IResourceRequestHandler or ISchemeHandlerFactory. POST data may only contain only a single element of type PDE_TYPE_FILE or PDE_TYPE_BYTES. Uses the Global RequestContext
Public methodUrlRequest(IRequest, IUrlRequestClient, IRequestContext)
Create a new URL request that is not associated with a specific browser or frame. Use CreateUrlRequest(IRequest, IUrlRequestClient) instead if you want the request to have this association, in which case it may be handled differently. For requests originating from the browser process: It may be intercepted by the client via IResourceRequestHandler or ISchemeHandlerFactory. POST data may only contain only a single element of type PDE_TYPE_FILE or PDE_TYPE_BYTES.
Top
Properties
  NameDescription
Public propertyRequestStatus
The request status.
Public propertyResponse
The response, or null if no response information is available
Public propertyResponseWasCached
True if the response was served from the cache.
Top
Methods
  NameDescription
Public methodCreate(IRequest, IUrlRequestClient)
Create a new URL request that is not associated with a specific browser or frame. Use CreateUrlRequest(IRequest, IUrlRequestClient) instead if you want the request to have this association, in which case it may be handled differently. For requests originating from the browser process: It may be intercepted by the client via IResourceRequestHandler or ISchemeHandlerFactory. POST data may only contain only a single element of type PDE_TYPE_FILE or PDE_TYPE_BYTES. Uses the Global RequestContext
Public methodCreate(IRequest, IUrlRequestClient, IRequestContext)
Create a new URL request that is not associated with a specific browser or frame. Use CreateUrlRequest(IRequest, IUrlRequestClient) instead if you want the request to have this association, in which case it may be handled differently. For requests originating from the browser process: It may be intercepted by the client via IResourceRequestHandler or ISchemeHandlerFactory. POST data may only contain only a single element of type PDE_TYPE_FILE or PDE_TYPE_BYTES.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also