5.2.9 draco.client - the Client object

The Client class is a Draco object that provides some information about the remote client that is making the http request. The global instance of this class in stored under the name client in the current module.

class Client( )
Global Draco object that provides information about the remote client that is making the http request.

The public methods of Client are:

address( )
Return the IP address of the client as a string.

port( )
Return the IP port number the client is connecting from.

hostname( )
Return the host name of the client. Calling this method requires one DNS lookup for each request. Subsequent calls during the same request will use a cached value. Depending on the Apache configuration, the DNS lookup is performed either by Apache or by Draco, but never by both.