WebKitGTK+ Reference Manual: WebKitNetworkResponse

## WebKitNetworkResponse WebKitNetworkResponse — the response given to a network request |

## Synopsis

                        WebKitNetworkResponse;
    const gchar *       webkit_network_response_get_uri     (WebKitNetworkResponse *response);
    SoupMessage *       webkit_network_response_get_message (WebKitNetworkResponse *response);
    const char *        webkit_network_response_get_suggested_filename
                                                            (WebKitNetworkResponse *response);
    void                webkit_network_response_set_uri     (WebKitNetworkResponse *response,
                                                             const gchar *uri);

## Object Hierarchy

      GObject
       +----WebKitNetworkResponse

## Properties

      "message"                  SoupMessage*          : Read / Write / Construct Only
      "suggested-filename"       gchar*                : Read
      "uri"                      gchar*                : Read / Write

## Description

This class represents the network related aspects of a navigation response.

## Details

### WebKitNetworkResponse

    typedef struct _WebKitNetworkResponse WebKitNetworkResponse;

### webkit_network_response_get_uri ()

    const gchar *       webkit_network_response_get_uri     (WebKitNetworkResponse *response);

`response` : | a WebKitNetworkResponse
Returns : | the URI of the WebKitNetworkResponse

Since 1.1.14

### webkit_network_response_get_message ()

    SoupMessage *       webkit_network_response_get_message (WebKitNetworkResponse *response);

Obtains the SoupMessage that represents the given response. Notice that only the response side of the HTTP conversation is represented.

`response` : | a WebKitNetworkResponse
Returns : | the SoupMessage. [transfer none]

Since 1.1.14

### webkit_network_response_get_suggested_filename ()

    const char *        webkit_network_response_get_suggested_filename
                                                            (WebKitNetworkResponse *response);

Obtains the suggested filename for the given network response. The suggested filename is taken from the 'Content-Disposition' HTTP header, but this is not always present, and this method will return `NULL` in such case.

`response` : | a WebKitNetworkResponse
Returns : | the suggested filename or `NULL` if not present. [transfer none]

Since 1.10

### webkit_network_response_set_uri ()

    void                webkit_network_response_set_uri     (WebKitNetworkResponse *response,
                                                             const gchar *uri);

Sets the URI held and used by the given response. When the response has an associated SoupMessage, its URI will also be set by this call.

`response` : | a WebKitNetworkResponse
`uri` : | an URI

Since 1.1.14

## Property Details

### The `"message"` property

      "message"                  SoupMessage*          : Read / Write / Construct Only

The SoupMessage that backs the response.

Since 1.1.14

### The `"suggested-filename"` property

      "suggested-filename"       gchar*                : Read

The suggested filename for the response.

Default value: NULL

Since 1.10

### The `"uri"` property

      "uri"                      gchar*                : Read / Write

The URI to which the response will be made.

Default value: NULL

Since 1.1.14

## See Also

WebKitNetworkRequest