# Interface ICefResponse

Description
Hierarchy
Methods
Properties

## Unit

uCEFInterfaces

## Declaration

`type ICefResponse = interface(ICefBaseRefCounted)`

## Description

Interface used to represent a web response. The functions of this interface may be called on any thread.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_response_capi.h">CEF source file: /include/capi/cef_response_capi.h (cef_response_t))

## Hierarchy

- IInterface
- ICefBaseRefCounted
- ICefResponse

## Overview

### Methods

Public | `function IsReadOnly: Boolean;`
Public | `function GetError: TCefErrorCode;`
Public | `procedure SetError(error: TCefErrorCode);`
Public | `function GetStatus: Integer;`
Public | `procedure SetStatus(status: Integer);`
Public | `function GetStatusText: ustring;`
Public | `procedure SetStatusText(const StatusText: ustring);`
Public | `function GetMimeType: ustring;`
Public | `procedure SetMimeType(const mimetype: ustring);`
Public | `function GetCharset: ustring;`
Public | `procedure SetCharset(const charset: ustring);`
Public | `function GetHeaderByName(const name: ustring): ustring;`
Public | `procedure SetHeaderByName(const name, value: ustring; overwrite: boolean);`
Public | `procedure GetHeaderMap(const headerMap: ICefStringMultimap);`
Public | `procedure SetHeaderMap(const headerMap: ICefStringMultimap);`
Public | `function GetURL: ustring;`
Public | `procedure SetURL(const url: ustring);`

### Properties

Public | `property Status : Integer read GetStatus write SetStatus;`
Public | `property StatusText : ustring read GetStatusText write SetStatusText;`
Public | `property MimeType : ustring read GetMimeType write SetMimeType;`
Public | `property Charset : ustring read GetCharset write SetCharset;`
Public | `property Error : TCefErrorCode read GetError write SetError;`
Public | `property URL : ustring read GetURL write SetURL;`

## Description

### Methods

Public | `function IsReadOnly: Boolean;`
Returns true (1) if this object is read-only. ###### Attributes GUID['{E9C896E4-59A8-4B96-AB5E-6EA3A498B7F1}']

Public | `function GetError: TCefErrorCode;`
Get the response error code. Returns ERR_NONE if there was no error.

Public | `procedure SetError(error: TCefErrorCode);`
Set the response error code. This can be used by custom scheme handlers to return errors during initial request processing.

Public | `function GetStatus: Integer;`
Get the response status code.

Public | `procedure SetStatus(status: Integer);`
Set the response status code.

Public | `function GetStatusText: ustring;`
Get the response status text.

Public | `procedure SetStatusText(const StatusText: ustring);`
Set the response status text.

Public | `function GetMimeType: ustring;`
Get the response mime type.

Public | `procedure SetMimeType(const mimetype: ustring);`
Set the response mime type.

Public | `function GetCharset: ustring;`
Get the response charset.

Public | `procedure SetCharset(const charset: ustring);`
Set the response charset.

Public | `function GetHeaderByName(const name: ustring): ustring;`
Get the value for the specified response header field.

Public | `procedure SetHeaderByName(const name, value: ustring; overwrite: boolean);`
Set the header |name| to |value|. If |overwrite| is true (1) any existing values will be replaced with the new value. If |overwrite| is false (0) any existing values will not be overwritten.

Public | `procedure GetHeaderMap(const headerMap: ICefStringMultimap);`
Get all response header fields.

Public | `procedure SetHeaderMap(const headerMap: ICefStringMultimap);`
Set all response header fields.

Public | `function GetURL: ustring;`
Get the resolved URL after redirects or changed as a result of HSTS.

Public | `procedure SetURL(const url: ustring);`
Set the resolved URL after redirects or changed as a result of HSTS.

### Properties

Public | `property Status : Integer read GetStatus write SetStatus;`
Get the response status code.

Public | `property StatusText : ustring read GetStatusText write SetStatusText;`
Get the response status text.

Public | `property MimeType : ustring read GetMimeType write SetMimeType;`
Get the response mime type.

Public | `property Charset : ustring read GetCharset write SetCharset;`
Get the response charset.

Public | `property Error : TCefErrorCode read GetError write SetError;`
Get the response error code. Returns ERR_NONE if there was no error.

Public | `property URL : ustring read GetURL write SetURL;`
Get the resolved URL after redirects or changed as a result of HSTS.

Generated by PasDoc 1.0.4.