The OpenD Programming Language

cef_response_t

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

version(cef && embedded_cef_bindings)
extern (C)
struct cef_response_t {
extern (System)
int function(cef_response_t* self) nothrow is_read_only;
extern (System)
cef_errorcode_t function(cef_response_t* self) nothrow get_error;
extern (System)
void function(cef_response_t* self, cef_errorcode_t error) nothrow set_error;
extern (System)
int function(cef_response_t* self) nothrow get_status;
}

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

get_charset
cef_string_userfree_t function(cef_response_t* self) nothrow get_charset;

Get the response charset.

get_header_by_name
cef_string_userfree_t function(cef_response_t* self, const(cef_string_t)* name) nothrow get_header_by_name;

Get the value for the specified response header field.

get_header_map
void function(cef_response_t* self, cef_string_multimap_t headerMap) nothrow get_header_map;

Get all response header fields.

get_mime_type
cef_string_userfree_t function(cef_response_t* self) nothrow get_mime_type;

Get the response mime type.

get_status_text
cef_string_userfree_t function(cef_response_t* self) nothrow get_status_text;

Get the response status text.

get_url
cef_string_userfree_t function(cef_response_t* self) nothrow get_url;

Get the resolved URL after redirects or changed as a result of HSTS.

set_charset
void function(cef_response_t* self, const(cef_string_t)* charset) nothrow set_charset;

Set the response charset.

set_header_by_name
void function(cef_response_t* self, const(cef_string_t)* name, const(cef_string_t)* value, int overwrite) nothrow set_header_by_name;

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.

set_header_map
void function(cef_response_t* self, cef_string_multimap_t headerMap) nothrow set_header_map;

Set all response header fields.

set_mime_type
void function(cef_response_t* self, const(cef_string_t)* mimeType) nothrow set_mime_type;

Set the response mime type.

set_status
void function(cef_response_t* self, int status) nothrow set_status;
set_status_text
void function(cef_response_t* self, const(cef_string_t)* statusText) nothrow set_status_text;

Set the response status text.

set_url
void function(cef_response_t* self, const(cef_string_t)* url) nothrow set_url;

Set the resolved URL after redirects or changed as a result of HSTS.

Meta