aspen.request_processor

The request processor dispatches requests to the filesystem (typecasting URL path variables), loads the resource from the filesystem, and then renders and encodes the resource.

class aspen.request_processor.RequestProcessor(**kwargs)

Define a parasitic request processor.

It depends on a host framework for real request/response objects.

process(path, querystring, accept_header, raise_immediately=None, return_after=None, **kw)

Given a path, querystring, and Accept header, return a state dict.

configure(**kwargs)

Takes a dictionary of strings/unicodes to strings/unicodes.

is_dynamic(fspath)

Given a filesystem path, return a boolean.

get_resource_class(fspath)

Given a filesystem path, return a resource class.