- base
cef_base_ref_counted_t base;
- get_first_party_for_cookies
cef_string_userfree_t function(cef_request_t* self) nothrow get_first_party_for_cookies;
Get the URL to the first party for cookies used in combination with
cef_urlrequest_t.
- get_flags
int function(cef_request_t* self) nothrow get_flags;
Get the flags used in combination with cef_urlrequest_t. See
cef_urlrequest_flags_t for supported values.
- get_header_by_name
cef_string_userfree_t function(cef_request_t* self, const(cef_string_t)* name) nothrow get_header_by_name;
Returns the first header value for |name| or an NULL string if not found.
Will not return the Referer value if any. Use GetHeaderMap instead if
|name| might have multiple values.
- get_header_map
void function(cef_request_t* self, cef_string_multimap_t headerMap) nothrow get_header_map;
Get the header values. Will not include the Referer value if any.
- get_identifier
ulong function(cef_request_t* self) nothrow get_identifier;
Returns the globally unique identifier for this request or 0 if not
specified. Can be used by cef_resource_request_handler_t implementations
in the browser process to track a single request across multiple
callbacks.
- get_post_data
cef_post_data_t* function(cef_request_t* self) nothrow get_post_data;
- get_referrer_policy
cef_referrer_policy_t function(cef_request_t* self) nothrow get_referrer_policy;
- get_referrer_url
cef_string_userfree_t function(cef_request_t* self) nothrow get_referrer_url;
- get_resource_type
cef_resource_type_t function(cef_request_t* self) nothrow get_resource_type;
Get the resource type for this request. Only available in the browser
process.
- get_transition_type
cef_transition_type_t function(cef_request_t* self) nothrow get_transition_type;
Get the transition type for this request. Only available in the browser
process and only applies to requests that represent a main frame or sub-
frame navigation.
- set
void function(cef_request_t* self, const(cef_string_t)* url, const(cef_string_t)* method, cef_post_data_t* postData, cef_string_multimap_t headerMap) nothrow set;
Set all values at one time.
- set_first_party_for_cookies
void function(cef_request_t* self, const(cef_string_t)* url) nothrow set_first_party_for_cookies;
Set the URL to the first party for cookies used in combination with
cef_urlrequest_t.
- set_flags
void function(cef_request_t* self, int flags) nothrow set_flags;
Set the flags used in combination with cef_urlrequest_t. See
cef_urlrequest_flags_t for supported values.
- set_header_by_name
void function(cef_request_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. The Referer value cannot be
set using this function.
- set_header_map
void function(cef_request_t* self, cef_string_multimap_t headerMap) nothrow set_header_map;
Set the header values. If a Referer value exists in the header map it will
be removed and ignored.
- set_method
void function(cef_request_t* self, const(cef_string_t)* method) nothrow set_method;
Set the request function type.
- set_post_data
void function(cef_request_t* self, cef_post_data_t* postData) nothrow set_post_data;
- set_referrer
void function(cef_request_t* self, const(cef_string_t)* referrer_url, cef_referrer_policy_t policy) nothrow set_referrer;
Set the referrer URL and policy. If non-NULL the referrer URL must be
fully qualified with an HTTP or HTTPS scheme component. Any username,
password or ref component will be removed.
Structure used to represent a web request. The functions of this structure may be called on any thread.