panda3d.core.VirtualFileMountHTTP

class VirtualFileMountHTTP

Bases: VirtualFileMount

Maps a web page (URL root) into the VirtualFileSystem.

Inheritance diagram

Inheritance diagram of VirtualFileMountHTTP

__init__(root: URLSpec, http: HTTPClient) → None
getHttpClient() → HTTPClient

Returns the HTTPClient object that services this mount point.

Return type

HTTPClient

getRoot() → URLSpec

Returns the URL that represents the root of this mount point.

Return type

URLSpec

static reloadVfsMountUrl() → None

Reads all of the vfs-mount-url lines in the Config.prc file and replaces the mount settings to match them.

This will mount any url’s mentioned in the config file, and unmount and unmount any url’s no longer mentioned in the config file. Normally, it is called automatically at startup, and need not be called again, unless you have fiddled with some config settings.

static getClassType() → TypeHandle
Return type

TypeHandle