cef_urlrequest_create

Function cef_urlrequest_create 

Source
pub unsafe extern "C" fn cef_urlrequest_create(
    request: *mut _cef_request_t,
    client: *mut _cef_urlrequest_client_t,
    request_context: *mut _cef_request_context_t,
) -> *mut cef_urlrequest_t
Expand description

Create a new URL request that is not associated with a specific browser or frame. Use cef_frame_t::CreateURLRequest instead if you want the request to have this association, in which case it may be handled differently (see documentation on that function). A request created with this function may only originate from the browser process, and will behave as follows:

  • It may be intercepted by the client via CefResourceRequestHandler or CefSchemeHandlerFactory.
  • POST data may only contain only a single element of type PDE_TYPE_FILE or PDE_TYPE_BYTES.
  • If |request_context| is empty the global request context will be used.

The |request| object will be marked as read-only after calling this function.