4. Manual for the httpy Server

httpy is an executable that instantiates the Multiple responder with the StandAlone coupler. Out of the box, it serves static files from the filesystem using the Static responder. Please see the Multiple documentation for information on extending httpy.

httpy exposes the following command-line options:

Option Description Defaults
-a/--address=address The address to which httpy should bind. If address begins with a dot or a forward slash, then it is interpreted as an AF_UNIX socket. Otherwise, it is interpreted as an AF_INET socket. If address begins with a colon, then the loopback address is assumed. :8080
-m/--mode=mode mode is one of the strings 'development', 'debugging', 'staging', or 'deployment'. The HTTPY_MODE environment variable will be set to this value, and will be available to your responders via the httpy.mode object. development
-t/--threads=threads httpy creates a new thread for each request, up to threads. The minimum is 1. No upper limit is enforced. 10
-u/--user=user After binding to address, httpy switches to the uid of user, if given.

httpy can also take its mode and threads parameters from the environment, in the HTTPY_MODE and HTTPY_THREADS variables. The command line options override the environment variables.

httpy is Zeta software. It is copyright © 2006 by Chad Whitacre, and is offered free of charge, warranty, and restrictions.