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.


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


Given a filesystem path, return a boolean.


Given a filesystem path, return a resource class.