Part of twisted.web.server View Source View In Hierarchy
| Instance Variables | counter | increment value used for generating unique sessions ID. |
| requestFactory | factory creating requests objects. Default to Request.
| |
| displayTracebacks | if set, Twisted internal errors are displayed on rendered pages.
Default to True.
| |
| sessionFactory | factory for sessions objects. Default to Session.
| |
| sessionCheckTime | interval between each check of session expiration. |
Split Table into Classes Show Methods in One Table
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 489 | Method | __init__ | Initialize. |
| 501 | Method | __getstate__ | Undocumented |
| 514 | Method | makeSession | Generate a new Session instance, and store it for future reference. |
| 523 | Method | getSession | Get a previously generated session, by its unique ID. |
| 530 | Method | buildProtocol | Generate a channel attached to this site. |
| 541 | Method | render | Redirect because a Site is always a directory. |
| 548 | Method | getChildWithDefault | Emulate a resource's getChild method. |
| 555 | Method | getResourceFor | Get a resource for a request. |
| 497 | Method | _openLogFile | Override in subclasses, e.g. to use twisted.python.logfile. |
| 506 | Method | _mkuid | (internal) Generate an opaque, unique ID for a user's session. |
Inherited from HTTPFactory:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 1505 | Method | startFactory | This will be called before I begin listening on a Port or Connector. |
| 1512 | Method | stopFactory | This will be called before I stop listening on all Ports/Connectors. |
| 1532 | Method | log | Log a request's result to the logfile, by default in combined log format. |
| 1524 | Method | _escape | Undocumented |
Inherited from Factory (via HTTPFactory, ServerFactory):
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 39 | Method | doStart | Make sure startFactory is called. |
| 50 | Method | doStop | Make sure stopFactory is called. |
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 501 | Method | __getstate__ | Undocumented |
| 489 | Method | __init__ | Initialize. |
| 530 | Method | buildProtocol | Generate a channel attached to this site. |
| 39 | Method | doStart | Make sure startFactory is called. |
| 50 | Method | doStop | Make sure stopFactory is called. |
| 548 | Method | getChildWithDefault | Emulate a resource's getChild method. |
| 555 | Method | getResourceFor | Get a resource for a request. |
| 523 | Method | getSession | Get a previously generated session, by its unique ID. |
| 1532 | Method | log | Log a request's result to the logfile, by default in combined log format. |
| 514 | Method | makeSession | Generate a new Session instance, and store it for future reference. |
| 541 | Method | render | Redirect because a Site is always a directory. |
| 1505 | Method | startFactory | This will be called before I begin listening on a Port or Connector. |
| 1512 | Method | stopFactory | This will be called before I stop listening on all Ports/Connectors. |
| 1524 | Method | _escape | Undocumented |
| 506 | Method | _mkuid | (internal) Generate an opaque, unique ID for a user's session. |
| 497 | Method | _openLogFile | Override in subclasses, e.g. to use twisted.python.logfile. |
Get a resource for a request.
This iterates through the resource heirarchy, calling getChildWithDefault on each resource it finds for a path element, stopping when it hits an element where isLeaf is true.