Module Expr Str ImportFrom alias alias ImportFrom alias alias ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str keyword Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list decorator_list Assign NameStore Call NameLoad TupleLoad Str Num Expr Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A Filtering

A simple example showing how to intercept and potentially filter requests.
This example demonstrates how you could intercept the response before it goes
out changing the response's content into ALL UPPER CASE!
 circuits handler Component circuits.web Server Controller Upper N/A Component N/A N/A channel web _on_response N/A N/A self response N/A N/A N/A Response Handler

        Here we set the priority slightly higher than the default response
        handler in circutis.web (0.0) so that can we do something about the
        response before it finally goes out to the client.

        Here's we're simply modifying the response body by changing the content
        into ALL UPPERCASE!
         N/A N/A response body N/A N/A N/A N/A join N/A response body upper N/A N/A handler response priority 1.0 N/A Root N/A Controller N/A index N/A N/A self N/A N/A N/A Request Handler

        Our normal request handler simply returning
        "Hello World!" as the response.
         N/A Hello World! N/A N/A N/A app N/A Server N/A 0.0.0.0 8000 N/A N/A N/A N/A Upper register app N/A N/A N/A N/A Root register app N/A N/A N/A app run