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.
-
-
Global Draco object that provides information about the remote client that
is making the http request.
The public methods of Client are:
-
-
Return the IP address of the client as a string.
-
-
Return the IP port number the client is connecting from.
-
-
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.