Chromium Embedded Framework (CEF)
131.2.1+ge081753+chromium-131.0.6778.13
|
Class used to make a URL request. More...
#include "include/cef_urlrequest.h"
Public Types | |
typedef cef_urlrequest_status_t | Status |
typedef cef_errorcode_t | ErrorCode |
Public Member Functions | |
virtual CefRefPtr< CefRequest > | GetRequest ()=0 |
Returns the request object used to create this URL request. More... | |
virtual CefRefPtr< CefURLRequestClient > | GetClient ()=0 |
Returns the client. More... | |
virtual Status | GetRequestStatus ()=0 |
Returns the request status. More... | |
virtual ErrorCode | GetRequestError ()=0 |
Returns the request error if status is UR_CANCELED or UR_FAILED, or 0 otherwise. More... | |
virtual CefRefPtr< CefResponse > | GetResponse ()=0 |
Returns the response, or NULL if no response information is available. More... | |
virtual bool | ResponseWasCached ()=0 |
Returns true if the response body was served from the cache. More... | |
virtual void | Cancel ()=0 |
Cancel the request. More... | |
Public Member Functions inherited from CefBaseRefCounted | |
virtual void | AddRef () const =0 |
Called to increment the reference count for the object. More... | |
virtual bool | Release () const =0 |
Called to decrement the reference count for the object. More... | |
virtual bool | HasOneRef () const =0 |
Returns true if the reference count is 1. More... | |
virtual bool | HasAtLeastOneRef () const =0 |
Returns true if the reference count is at least 1. More... | |
Static Public Member Functions | |
static CefRefPtr< CefURLRequest > | Create (CefRefPtr< CefRequest > request, CefRefPtr< CefURLRequestClient > client, CefRefPtr< CefRequestContext > request_context) |
Create a new URL request that is not associated with a specific browser or frame. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CefBaseRefCounted | |
virtual | ~CefBaseRefCounted () |
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.
|
pure virtual |
Cancel the request.
|
static |
Create a new URL request that is not associated with a specific browser or frame.
Use CefFrame::CreateURLRequest instead if you want the request to have this association, in which case it may be handled differently (see documentation on that method). A request created with this method may only originate from the browser process, and will behave as follows:
The |request| object will be marked as read-only after calling this method.
|
pure virtual |
Returns the client.
|
pure virtual |
Returns the request object used to create this URL request.
The returned object is read-only and should not be modified.
|
pure virtual |
Returns the request error if status is UR_CANCELED or UR_FAILED, or 0 otherwise.
|
pure virtual |
Returns the request status.
|
pure virtual |
Returns the response, or NULL if no response information is available.
Response information will only be available after the upload has completed. The returned object is read-only and should not be modified.
|
pure virtual |
Returns true if the response body was served from the cache.
This includes responses for which revalidation was required.