Basically, an adapter does the following things:
Django adapter is a simple function:
Django adapter. It has three arguments:
First two are the context of an application, function serve transforms them into a pyws request object. Then it feeds the request to the server, gets the response and transforms it into a Django response object.
Twisted Web adapter is a simple function:
Twisted Web adapter. It has two arguments:
First one is the context of an application, function serve transforms it into a pyws request object. Then it feeds the request to the server, gets the response, sets header Content-Type and returns response text.
WSGI adapter adapter is an application, it can be created by this function:
WSGI adapter. It creates a simple WSGI application, that can be used with any WSGI server. The arguments are:
An application created by the function transforms WSGI environment into a pyws request object. Then it feeds the request to the server, gets the response, sets header Content-Type and returns response text.