Chromium Embedded Framework (CEF)
131.2.1+ge081753+chromium-131.0.6778.13
|
Class used to represent a web response. More...
#include "include/cef_response.h"
Public Types | |
typedef std::multimap< CefString, CefString > | HeaderMap |
Public Member Functions | |
virtual bool | IsReadOnly ()=0 |
Returns true if this object is read-only. More... | |
virtual cef_errorcode_t | GetError ()=0 |
Get the response error code. More... | |
virtual void | SetError (cef_errorcode_t error)=0 |
Set the response error code. More... | |
virtual int | GetStatus ()=0 |
Get the response status code. More... | |
virtual void | SetStatus (int status)=0 |
Set the response status code. More... | |
virtual CefString | GetStatusText ()=0 |
Get the response status text. More... | |
virtual void | SetStatusText (const CefString &statusText)=0 |
Set the response status text. More... | |
virtual CefString | GetMimeType ()=0 |
Get the response mime type. More... | |
virtual void | SetMimeType (const CefString &mimeType)=0 |
Set the response mime type. More... | |
virtual CefString | GetCharset ()=0 |
Get the response charset. More... | |
virtual void | SetCharset (const CefString &charset)=0 |
Set the response charset. More... | |
virtual CefString | GetHeaderByName (const CefString &name)=0 |
Get the value for the specified response header field. More... | |
virtual void | SetHeaderByName (const CefString &name, const CefString &value, bool overwrite)=0 |
Set the header |name| to |value|. More... | |
virtual void | GetHeaderMap (HeaderMap &headerMap)=0 |
Get all response header fields. More... | |
virtual void | SetHeaderMap (const HeaderMap &headerMap)=0 |
Set all response header fields. More... | |
virtual CefString | GetURL ()=0 |
Get the resolved URL after redirects or changed as a result of HSTS. More... | |
virtual void | SetURL (const CefString &url)=0 |
Set the resolved URL after redirects or changed as a result of HSTS. 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< CefResponse > | Create () |
Create a new CefResponse object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CefBaseRefCounted | |
virtual | ~CefBaseRefCounted () |
Class used to represent a web response.
The methods of this class may be called on any thread.
typedef std::multimap<CefString, CefString> CefResponse::HeaderMap |
|
static |
Create a new CefResponse object.
|
pure virtual |
Get the response charset.
|
pure virtual |
Get the response error code.
Returns ERR_NONE if there was no error.
Get the value for the specified response header field.
|
pure virtual |
Get all response header fields.
|
pure virtual |
Get the response mime type.
|
pure virtual |
Get the response status code.
|
pure virtual |
Get the response status text.
|
pure virtual |
Get the resolved URL after redirects or changed as a result of HSTS.
|
pure virtual |
Returns true if this object is read-only.
|
pure virtual |
Set the response charset.
|
pure virtual |
Set the response error code.
This can be used by custom scheme handlers to return errors during initial request processing.
|
pure virtual |
Set the header |name| to |value|.
If |overwrite| is true any existing values will be replaced with the new value. If |overwrite| is false any existing values will not be overwritten.
|
pure virtual |
Set all response header fields.
|
pure virtual |
Set the response mime type.
|
pure virtual |
Set the response status code.
|
pure virtual |
Set the response status text.
|
pure virtual |
Set the resolved URL after redirects or changed as a result of HSTS.