Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefURLRequest

CefBaseRefCounted
   |
   +--CefURLRequest

   in cef_urlrequest.h

class CefURLRequest
extends 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.


Inner Classes, Typedefs, and Enums
typedef CefURLRequest::ErrorCode
          
typedef CefURLRequest::Status
          
 
Method Summary
 virtual void Cancel()= 0
          Cancel the request.
 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.
 virtual CefRefPtr< CefURLRequestClient > GetClient()= 0
          Returns the client.
 virtual CefRefPtr< CefRequest > GetRequest()= 0
          Returns the request object used to create this URL request.
 virtual CefURLRequest::ErrorCode GetRequestError()= 0
          Returns the request error if status is UR_CANCELED or UR_FAILED, or 0 otherwise.
 virtual CefURLRequest::Status GetRequestStatus()= 0
          Returns the request status.
 virtual CefRefPtr< CefResponse > GetResponse()= 0
          Returns the response, or NULL if no response information is available.
 virtual bool ResponseWasCached()= 0
          Returns true if the response body was served from the cache.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

Cancel

public virtual void Cancel()= 0;
Cancel the request.

Create

public 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. 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). Requests may originate from the both browser process and the render process. For requests originating from the browser process: - It may be intercepted by the client via CefResourceRequestHandler or CefSchemeHandlerFactory. - POST data may only contain only a single element of type PDE_TYPE_FILE or PDE_TYPE_BYTES. - If |request_context| is empty the global request context will be used. For requests originating from the render process: - It cannot be intercepted by the client so only http(s) and blob schemes are supported. - POST data may only contain a single element of type PDE_TYPE_BYTES. - The |request_context| parameter must be NULL. The |request| object will be marked as read-only after calling this method.

GetClient

public virtual CefRefPtr< CefURLRequestClient > GetClient()= 0;
Returns the client.

GetRequest

public virtual CefRefPtr< CefRequest > GetRequest()= 0;
Returns the request object used to create this URL request. The returned object is read-only and should not be modified.

GetRequestError

public virtual CefURLRequest::ErrorCode GetRequestError()= 0;
Returns the request error if status is UR_CANCELED or UR_FAILED, or 0 otherwise.

GetRequestStatus

public virtual CefURLRequest::Status GetRequestStatus()= 0;
Returns the request status.

GetResponse

public virtual CefRefPtr< CefResponse > GetResponse()= 0;
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.

ResponseWasCached

public virtual bool ResponseWasCached()= 0;
Returns true if the response body was served from the cache. This includes responses for which revalidation was required.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt