Part of nevow.testutil View Source View In Hierarchy
Implements interfaces: formless.iformless.IFormDefaults
| Instance Variables | accumulator | The accumulated data from write(). |
Split Table into Classes Show Methods in One Table
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 232 | Method | __init__ | Create a FakeRequest instance. |
| 237 | Method | write | Undocumented |
| 241 | Method | getDefault | Gets the default value from the parameter 'key' |
| 244 | Method | remember | Undocumented |
Inherited from FakeRequest:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 107 | Method | URLPath | Undocumented |
| 111 | Method | getSession | Undocumented |
| 119 | Method | finish | We are finished writing data. |
| 122 | Method | getHeader | Get a header that was sent from the network. |
| 125 | Method | setHeader | Set an outgoing HTTP header. |
| 128 | Method | redirect | Utility function that does a redirect. |
| 131 | Method | getRootURL | Get a previously-remembered URL. |
| 134 | Method | processingFailed | Undocumented |
| 137 | Method | setResponseCode | Set the HTTP response code. |
| 140 | Method | prePathURL | Undocumented |
| 143 | Method | getClientIP | Undocumented |
| 146 | Method | addCookie | Set a cookie for use in subsequent requests. |
| 152 | Method | getCookie | Fetch a cookie previously set. |
| 158 | Method | getUser | Returns the HTTP auth username. |
| 164 | Method | getPassword | Returns the HTTP auth password. |
| 170 | Method | rememberRootURL | For compatibility with appserver.NevowRequest. |
| 176 | Method | isSecure | Returns whether this is an HTTPS request or not. |
Inherited from Componentized (via FakeRequest):
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 206 | Method | locateAdapterClass | Undocumented |
| 209 | Method | setAdapter | Undocumented |
| 212 | Method | addAdapter | Utility method that calls addComponent. I take an adapter class and |
| 222 | Method | setComponent | Undocumented |
| 227 | Method | addComponent | Add a component to me, for all appropriate interfaces. |
| 249 | Method | unsetComponent | Remove my component specified by the given interface class. |
| 253 | Method | removeComponent | Remove the given component from me entirely, for all interfaces for which |
| 267 | Method | getComponent | Create or retrieve an adapter for the given interface. |
| 300 | Method | __conform__ | Undocumented |
Inherited from Versioned (via FakeRequest, Componentized):
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 187 | Method | __setstate__ | Undocumented |
| 191 | Method | __getstate__ | Get state, adding a version number to it on its way out. |
| 207 | Method | versionUpgrade | (internal) Do a version upgrade. |
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 300 | Method | __conform__ | Undocumented |
| 191 | Method | __getstate__ | Get state, adding a version number to it on its way out. |
| 232 | Method | __init__ | Create a FakeRequest instance. |
| 187 | Method | __setstate__ | Undocumented |
| 212 | Method | addAdapter | Utility method that calls addComponent. I take an adapter class and |
| 227 | Method | addComponent | Add a component to me, for all appropriate interfaces. |
| 146 | Method | addCookie | Set a cookie for use in subsequent requests. |
| 119 | Method | finish | We are finished writing data. |
| 143 | Method | getClientIP | Undocumented |
| 267 | Method | getComponent | Create or retrieve an adapter for the given interface. |
| 152 | Method | getCookie | Fetch a cookie previously set. |
| 241 | Method | getDefault | Gets the default value from the parameter 'key' |
| 122 | Method | getHeader | Get a header that was sent from the network. |
| 164 | Method | getPassword | Returns the HTTP auth password. |
| 131 | Method | getRootURL | Get a previously-remembered URL. |
| 111 | Method | getSession | Undocumented |
| 158 | Method | getUser | Returns the HTTP auth username. |
| 176 | Method | isSecure | Returns whether this is an HTTPS request or not. |
| 206 | Method | locateAdapterClass | Undocumented |
| 140 | Method | prePathURL | Undocumented |
| 134 | Method | processingFailed | Undocumented |
| 128 | Method | redirect | Utility function that does a redirect. |
| 244 | Method | remember | Undocumented |
| 170 | Method | rememberRootURL | For compatibility with appserver.NevowRequest. |
| 253 | Method | removeComponent | Remove the given component from me entirely, for all interfaces for which |
| 209 | Method | setAdapter | Undocumented |
| 222 | Method | setComponent | Undocumented |
| 125 | Method | setHeader | Set an outgoing HTTP header. |
| 137 | Method | setResponseCode | Set the HTTP response code. |
| 249 | Method | unsetComponent | Remove my component specified by the given interface class. |
| 107 | Method | URLPath | Undocumented |
| 207 | Method | versionUpgrade | (internal) Do a version upgrade. |
| 237 | Method | write | Undocumented |
Create a FakeRequest instance.
headers:
dict of headers
args:
dict of args
avatar:
avatar to pass to the FakeSession instance
uri:
request URI
currentSegments:
list of segments that have "already been located"
cookies:
dict of cookies
user:
username (like in http auth)
password:
password (like in http auth)
isSecure:
whether this request represents an HTTPS url