crossbar.webservice.static

Attributes

Classes

RouterWebServiceStatic

Static file serving Web service.

StaticResource

Resource for static assets from file system.

StaticResourceNoListing

A file hierarchy resource with directory listing disabled.

Module Contents

DEFAULT_CACHE_TIMEOUT = 43200[source]
EXTRA_MIME_TYPES[source]
class RouterWebServiceStatic(transport, path, config=None, resource=None)[source]

Bases: crossbar.webservice.base.RouterWebService

Static file serving Web service.

static create(transport, path, config)[source]
class StaticResource(*args, **kwargs)[source]

Bases: twisted.web.static.File

Resource for static assets from file system.

_allow_cross_origin[source]
_cache_timeout[source]
createSimilarFile(*args, **kwargs)[source]
render_GET(request)[source]

Begin sending the contents of this L{File} (or a subset of the contents, based on the ‘range’ header) to the given request.

class StaticResourceNoListing(*args, **kwargs)[source]

Bases: StaticResource

A file hierarchy resource with directory listing disabled.

directoryListing()[source]

Return a resource that generates an HTML listing of the directory this path represents.

@return: A resource that renders the directory to HTML. @rtype: L{DirectoryLister}