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 CefResponse

CefBaseRefCounted
   |
   +--CefResponse

   in cef_response.h

class CefResponse
extends CefBaseRefCounted

Class used to represent a web response. The methods of this class may be called on any thread.


Inner Classes, Typedefs, and Enums
typedef CefResponse::HeaderMap
          
 
Method Summary
 static CefRefPtr< CefResponse > Create()
          Create a new CefResponse object.
 virtual CefString GetCharset()= 0
          Get the response charset.
 virtual cef_errorcode_t GetError()= 0
          Get the response error code.
 virtual CefString GetHeader( const CefString& name )= 0
          Get the value for the specified response header field.
 virtual void GetHeaderMap( CefResponse::HeaderMap& headerMap )= 0
          Get all response header fields.
 virtual CefString GetMimeType()= 0
          Get the response mime type.
 virtual int GetStatus()= 0
          Get the response status code.
 virtual CefString GetStatusText()= 0
          Get the response status text.
 virtual CefString GetURL()= 0
          Get the resolved URL after redirects or changed as a result of HSTS.
 virtual bool IsReadOnly()= 0
          Returns true if this object is read-only.
 virtual void SetCharset( const CefString& charset )= 0
          Set the response charset.
 virtual void SetError( cef_errorcode_t error )= 0
          Set the response error code.
 virtual void SetHeaderMap( const CefResponse::HeaderMap& headerMap )= 0
          Set all response header fields.
 virtual void SetMimeType( const CefString& mimeType )= 0
          Set the response mime type.
 virtual void SetStatus( int status )= 0
          Set the response status code.
 virtual void SetStatusText( const CefString& statusText )= 0
          Set the response status text.
 virtual void SetURL( const CefString& url )= 0
          Set the resolved URL after redirects or changed as a result of HSTS.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

Create

public static CefRefPtr< CefResponse > Create();
Create a new CefResponse object.

GetCharset

public virtual CefString GetCharset()= 0;
Get the response charset.

GetError

public virtual cef_errorcode_t GetError()= 0;
Get the response error code. Returns ERR_NONE if there was no error.

GetHeader

public virtual CefString GetHeader( const CefString& name )= 0;
Get the value for the specified response header field.

GetHeaderMap

public virtual void GetHeaderMap( CefResponse::HeaderMap& headerMap )= 0;
Get all response header fields.

GetMimeType

public virtual CefString GetMimeType()= 0;
Get the response mime type.

GetStatus

public virtual int GetStatus()= 0;
Get the response status code.

GetStatusText

public virtual CefString GetStatusText()= 0;
Get the response status text.

GetURL

public virtual CefString GetURL()= 0;
Get the resolved URL after redirects or changed as a result of HSTS.

IsReadOnly

public virtual bool IsReadOnly()= 0;
Returns true if this object is read-only.

SetCharset

public virtual void SetCharset( const CefString& charset )= 0;
Set the response charset.

SetError

public virtual void SetError( cef_errorcode_t error )= 0;
Set the response error code. This can be used by custom scheme handlers to return errors during initial request processing.

SetHeaderMap

public virtual void SetHeaderMap( const CefResponse::HeaderMap& headerMap )= 0;
Set all response header fields.

SetMimeType

public virtual void SetMimeType( const CefString& mimeType )= 0;
Set the response mime type.

SetStatus

public virtual void SetStatus( int status )= 0;
Set the response status code.

SetStatusText

public virtual void SetStatusText( const CefString& statusText )= 0;
Set the response status text.

SetURL

public virtual void SetURL( const CefString& url )= 0;
Set the resolved URL after redirects or changed as a result of HSTS.

 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