Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 3.3578.1860.g36610bd
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.
 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. Only GET, POST, HEAD, DELETE and PUT request methods are supported. Multiple post data elements are not supported and elements of type PDE_TYPE_FILE are only supported for requests originating from the browser process. Requests originating from the render process will receive the same handling as requests originating from Web content -- if the response contains Content-Disposition or Mime-Type header values that would not normally be rendered then the response may receive special handling inside the browser (for example, via the file download code path instead of the URL request code path). The |request| object will be marked as read-only after calling this method. In the browser process if |request_context| is empty the global request context will be used. In the render process |request_context| must be empty and the context associated with the current renderer process' browser will be used.

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 3.3578.1860.g36610bd
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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