class documentation
class Options(usage.Options): (source)
Define the options accepted by the twistd web plugin.
Method | __init__ |
Undocumented |
Method | opt |
Specify an additional header to be included in all responses. Specified as "HeaderName: HeaderValue". |
Method | opt |
Specify whether or not a request for 'foo' should return 'foo.ext' |
Method | opt |
Create a Resource subclass with a zero-argument constructor. |
Method | opt |
(DEPRECATED: use --listen) Port to listen on for Secure HTTP. |
Method | opt |
Specify an extension to ignore. These will be processed in order. |
Method | opt |
Add the name of a file used to check for directory indexes. [default: index, index.html] |
Method | opt |
Add an strports description of port to start the server on. [default: tcp:8080] |
Method | opt |
Specify the default mime-type for static files. |
Method | opt |
<path> is either a specific file or a directory to be set as the root of the web server. Use this if you have a directory full of HTML, cgi, epy, or rpy files or any other files that you want to be served up raw. |
Method | opt |
(DEPRECATED: use --listen) Strports description of port to start the server on |
Method | opt |
`ext=class' where `class' is added as a Processor for files ending with `ext'. |
Method | opt |
An .rpy file to be used as the root resource of the webserver. |
Method | opt |
Makes a server with ~/public_html and ~/.twistd-web-pb support for users. |
Method | opt |
The FQPN of a WSGI application object to serve as the root resource of the webserver. |
Method | post |
Set up conditional defaults and check for dependencies. |
Class Variable | comp |
Undocumented |
Class Variable | longdesc |
Undocumented |
Class Variable | opt |
Undocumented |
Class Variable | opt |
Undocumented |
Class Variable | synopsis |
Undocumented |
Inherited from Options
:
Method | __str__ |
Undocumented |
Method | get |
Returns a string containing a description of these options and how to pass them to the executed file. |
Method | get |
Undocumented |
Method | opt |
Display this help and exit. |
Method | opt |
Display Twisted version and exit. |
Method | parse |
I am called with any leftover arguments which were not options. |
Method | parse |
The guts of the command-line parser. |
Class Variable | completion |
Undocumented |
Class Variable | default |
Undocumented |
Class Variable | parent |
Undocumented |
Instance Variable | defaults |
Undocumented |
Instance Variable | docs |
Undocumented |
Instance Variable | long |
Undocumented |
Instance Variable | opts |
Undocumented |
Instance Variable | short |
Undocumented |
Instance Variable | sub |
Undocumented |
Instance Variable | sub |
Undocumented |
Instance Variable | synonyms |
Undocumented |
Method | _gather |
Gather up boolean (flag) options. |
Method | _gather |
Gather up options with their own handler methods. |
Method | _gather |
Gather options which take a value. |
Method | _generic |
Undocumented |
Instance Variable | _dispatch |
Undocumented |
Specify an additional header to be included in all responses. Specified as "HeaderName: HeaderValue".
<path> is either a specific file or a directory to be set as the root of the web server. Use this if you have a directory full of HTML, cgi, epy, or rpy files or any other files that you want to be served up raw.
overrides
twisted.python.usage.Options.postOptions
Set up conditional defaults and check for dependencies.
If SSL is not available but an HTTPS server was configured, raise a UsageError
indicating that this is not possible.
If no server port was supplied, select a default appropriate for the other options supplied.