Part of twisted.web2.tap View Source View In Hierarchy
Split Table into Classes Show Methods in One Table
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 62 | Method | __init__ | Undocumented |
| 67 | Method | opt_index | Add the name of a file used to check for directory indexes. |
| 75 | Method | opt_path | A path that will be used to serve the root resource as a raw file |
| 85 | Method | opt_processor | `ext=class' where `class' is added as a Processor for files ending |
| 94 | Method | opt_class | A class that will be used to serve the root resource. Must implement twisted.web2.iweb.IResource and take no arguments. |
| 103 | Method | opt_allow_ignore_ext | Specify whether or not a request for 'foo' should return 'foo.ext' |
| 110 | Method | opt_ignore_ext | Specify an extension to ignore. These will be processed in order. |
| 118 | Method | opt_mimetype | Mapping from file extension to MIME Type in the form of 'ext=type'. |
| 133 | Method | opt_vhost_path | Specify a directory to use for automatic named virtual hosts. |
| 153 | Method | opt_vhost_static | Specify a virtual host in the form of domain=path to be served as |
| 170 | Method | opt_vhost_class | Specify a virtual host in the form of domain=class, |
| 189 | Method | postOptions | I am called after the options are parsed. |
Inherited from Options:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 168 | Method | __hash__ | Define a custom hash function so that Options instances can be used |
| 176 | Method | opt_help | Display this help and exit. |
| 183 | Method | opt_version | Undocumented |
| 190 | Method | parseOptions | The guts of the command-line parser. |
| 252 | Method | parseArgs | I am called with any leftover arguments which were not options. |
| 412 | Method | __str__ | Undocumented |
| 415 | Method | getSynopsis | Returns a string containing a description of these options and how to |
| 438 | Method | getUsage | Undocumented |
| 267 | Method | _generic_flag | Undocumented |
| 274 | Method | _gather_flags | Gather up boolean (flag) options. |
| 301 | Method | _gather_parameters | Gather options which take a value. |
| 342 | Method | _gather_handlers | Gather up options with their own handler methods. |
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 168 | Method | __hash__ | Define a custom hash function so that Options instances can be used |
| 62 | Method | __init__ | Undocumented |
| 412 | Method | __str__ | Undocumented |
| 415 | Method | getSynopsis | Returns a string containing a description of these options and how to |
| 438 | Method | getUsage | Undocumented |
| 103 | Method | opt_allow_ignore_ext | Specify whether or not a request for 'foo' should return 'foo.ext' |
| 94 | Method | opt_class | A class that will be used to serve the root resource. Must implement twisted.web2.iweb.IResource and take no arguments. |
| 176 | Method | opt_help | Display this help and exit. |
| 110 | Method | opt_ignore_ext | Specify an extension to ignore. These will be processed in order. |
| 67 | Method | opt_index | Add the name of a file used to check for directory indexes. |
| 118 | Method | opt_mimetype | Mapping from file extension to MIME Type in the form of 'ext=type'. |
| 75 | Method | opt_path | A path that will be used to serve the root resource as a raw file |
| 85 | Method | opt_processor | `ext=class' where `class' is added as a Processor for files ending |
| 183 | Method | opt_version | Undocumented |
| 170 | Method | opt_vhost_class | Specify a virtual host in the form of domain=class, |
| 133 | Method | opt_vhost_path | Specify a directory to use for automatic named virtual hosts. |
| 153 | Method | opt_vhost_static | Specify a virtual host in the form of domain=path to be served as |
| 252 | Method | parseArgs | I am called with any leftover arguments which were not options. |
| 190 | Method | parseOptions | The guts of the command-line parser. |
| 189 | Method | postOptions | I am called after the options are parsed. |
| 274 | Method | _gather_flags | Gather up boolean (flag) options. |
| 342 | Method | _gather_handlers | Gather up options with their own handler methods. |
| 301 | Method | _gather_parameters | Gather options which take a value. |
| 267 | Method | _generic_flag | Undocumented |
I am called after the options are parsed.
Override this method in your subclass to do something after the options have been parsed and assigned, like validate that all options are sane.