WebKit2GTK+ Reference Manual: WebKitURIRequest

## WebKitURIRequest WebKitURIRequest — Represents a URI request |

## Synopsis

    struct              WebKitURIRequest;
    WebKitURIRequest *  webkit_uri_request_new              (const gchar *uri);
    const gchar *       webkit_uri_request_get_uri          (WebKitURIRequest *request);
    void                webkit_uri_request_set_uri          (WebKitURIRequest *request,
                                                             const gchar *uri);
    SoupMessageHeaders * webkit_uri_request_get_http_headers
                                                            (WebKitURIRequest *request);

## Object Hierarchy

      GObject
       +----WebKitURIRequest

## Properties

      "uri"                      gchar*                : Read / Write / Construct

## Description

A WebKitURIRequest can be created with a URI using the `webkit_uri_request_new()` method, and you can get the URI of an existing request with the `webkit_uri_request_get_uri()` one.

## Details

### struct WebKitURIRequest

    struct WebKitURIRequest;

### webkit_uri_request_new ()

    WebKitURIRequest *  webkit_uri_request_new              (const gchar *uri);

Creates a new WebKitURIRequest for the given URI.

`uri` : | an URI
Returns : | a new WebKitURIRequest

### webkit_uri_request_get_uri ()

    const gchar *       webkit_uri_request_get_uri          (WebKitURIRequest *request);

`request` : | a WebKitURIRequest
Returns : | the uri of the WebKitURIRequest

### webkit_uri_request_set_uri ()

    void                webkit_uri_request_set_uri          (WebKitURIRequest *request,
                                                             const gchar *uri);

Set the URI of `request`

`request` : | a WebKitURIRequest
`uri` : | an URI

### webkit_uri_request_get_http_headers ()

    SoupMessageHeaders * webkit_uri_request_get_http_headers
                                                            (WebKitURIRequest *request);

Get the HTTP headers of a WebKitURIRequest as a SoupMessageHeaders.

`request` : | a WebKitURIRequest
Returns : | a SoupMessageHeaders with the HTTP headers of `request` or `NULL` if `request` is not an HTTP request. [transfer none]

## Property Details

### The `"uri"` property

      "uri"                      gchar*                : Read / Write / Construct

The URI to which the request will be made.

Default value: "about:blank"