Class

CogDirectoryFilesHandler

Description [src]

final class Cog.DirectoryFilesHandler : GObject.Object {
  /* No available fields */
}

Request handler implementation that loads content from files inside a local directory.

By default only the path component of requested URIs is taken into account, and setting CogDirectoryFilesHandler:use-host. also uses the URI host component. If a resolved path points to a local directory and it contains a file named index.html, it will be used as the response.

Ancestors

Implements

Functions

cog_directory_files_handler_error_quark
No description available.
cog_directory_files_handler_new

Create a new handler.

Instance methods

cog_directory_files_handler_get_strip_components

Gets the value of the CogDirectoryFilesHandler:strip-components property.

cog_directory_files_handler_get_use_host

Gets the value of the CogDirectoryFilesHandler:use-host property.

cog_directory_files_handler_set_strip_components

Sets the value of the CogDirectoryFilesHandler:strip-components property.

cog_directory_files_handler_set_use_host

Sets the value of the CogDirectoryFilesHandler:use-host property.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from CogRequestHandler (1)
cog_request_handler_run

Handle a single custom URI scheme request.

Properties

Cog.DirectoryFilesHandler:base-path

Base directory where to search for files to “serve” as resources.

Cog.DirectoryFilesHandler:strip-components

Number of leading path components to strip (ignore) at the beginning of request URIs.

Cog.DirectoryFilesHandler:use-host

Whether to use the URI host component as the first subdirectory name.

Signals

Signals inherited from GObject (1)
GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct CogDirectoryFilesHandlerClass {
  GObjectClass parent_class;
  
}
Class members
parent_class
GObjectClass
  No description available.