5. The Apache Process Class

The Apache Process class contains information related to the network connection associated with the current request.

You can obtain the Process instance associated with the current request using the Server::process() method (or directly via Request::server()::process().

5.1. Method Documentation

Table B.4, “Apache Connection Methods” contains the exhaustive list of methods, in alphabetical order. The documentation of each method follows.

Table B.4. Apache Connection Methods

TypeNameArgs
method argc() 0
method argv() 0
method short_name() 0


argc()

argc() returns the number of arguments passed to the process, each of which which is stored in the argv structure.

argc()

argc() returns a Ruby Array containing the number of arguments passed to the process.

short_name()

short_name() returns a string containing the program name used to execute the program.