WebKitWebResource

WebKitWebResource — Represents a downloaded URI.

Synopsis

                    WebKitWebResource;
GString *           webkit_web_resource_get_data        (WebKitWebResource *web_resource);
const gchar *       webkit_web_resource_get_encoding    (WebKitWebResource *web_resource);
const gchar *       webkit_web_resource_get_frame_name  (WebKitWebResource *web_resource);
const gchar *       webkit_web_resource_get_mime_type   (WebKitWebResource *web_resource);
GType               webkit_web_resource_get_type        (void);
const gchar *       webkit_web_resource_get_uri         (WebKitWebResource *web_resource);
WebKitWebResource * webkit_web_resource_new             (const gchar *data,
                                                         gssize size,
                                                         const gchar *uri,
                                                         const gchar *mime_type,
                                                         const gchar *encoding,
                                                         const gchar *frame_name);

Description

A web resource encapsulates the data of the download as well as the URI, MIME type and frame name of the resource.

Details

WebKitWebResource

typedef struct {
    GObject parent_instance;
} WebKitWebResource;


webkit_web_resource_get_data ()

GString *           webkit_web_resource_get_data        (WebKitWebResource *web_resource);

Returns the data of the webResource.

web_resource :

a WebKitWebResource

Returns :

a GString containing the character data of the webResource. The string is owned by WebKit and should not be freed or destroyed.

Since 1.1.14


webkit_web_resource_get_encoding ()

const gchar *       webkit_web_resource_get_encoding    (WebKitWebResource *web_resource);

web_resource :

a WebKitWebResource

Returns :

the encoding name of the resource

Since 1.1.14


webkit_web_resource_get_frame_name ()

const gchar *       webkit_web_resource_get_frame_name  (WebKitWebResource *web_resource);

web_resource :

a WebKitWebResource

Returns :

the frame name of the resource.

Since 1.1.14


webkit_web_resource_get_mime_type ()

const gchar *       webkit_web_resource_get_mime_type   (WebKitWebResource *web_resource);

web_resource :

a WebKitWebResource

Returns :

the MIME type of the resource

Since 1.1.14


webkit_web_resource_get_type ()

GType               webkit_web_resource_get_type        (void);

Returns :


webkit_web_resource_get_uri ()

const gchar *       webkit_web_resource_get_uri         (WebKitWebResource *web_resource);

web_resource :

a WebKitWebResource

Returns :

the URI of the resource

Since 1.1.14


webkit_web_resource_new ()

WebKitWebResource * webkit_web_resource_new             (const gchar *data,
                                                         gssize size,
                                                         const gchar *uri,
                                                         const gchar *mime_type,
                                                         const gchar *encoding,
                                                         const gchar *frame_name);

Returns a new WebKitWebResource. The encoding can be NULL. The frame_name argument can be used if the resource represents contents of an entire HTML frame, otherwise pass NULL.

data :

the data to initialize the WebKitWebResource

size :

the length of data

uri :

the uri of the WebKitWebResource

mime_type :

the MIME type of the WebKitWebResource

encoding :

the text encoding name of the WebKitWebResource

frame_name :

the frame name of the WebKitWebResource

Returns :

a new WebKitWebResource

Since 1.1.14

See Also

WebKitWebDataSource