Part of nevow.appserver View Source View In Hierarchy
Implements interfaces: nevow.inevow.IRequest
A Request subclass which does additional processing if a form was POSTed. When a form is POSTed, we create a cgi.FieldStorage instance using the data posted, and set it as the request.fields attribute. This way, we can get at information about filenames and mime-types of files that were posted.
TODO: cgi.FieldStorage blocks while decoding the MIME. Rewrite it to do the work in chunks, yielding from time to time.Split Table into Classes Show Methods in One Table
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 115 | Method | __init__ | |
| 119 | Method | process | Process a request. |
| 155 | Method | gotPageContext | Undocumented |
| 167 | Method | finish | We are finished writing data. |
| 170 | Method | finishRequest | Undocumented |
| 199 | Method | getSession | Undocumented |
| 208 | Method | URLPath | Undocumented |
| 211 | Method | rememberRootURL | Remember the currently-processed part of the URL for later |
Inherited from Componentized:
| 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 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. |
Inherited from Request:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 94 | Method | getStateToCopyFor | Undocumented |
| 114 | Method | sibLink | Return the text that links to a sibling of the requested resource. |
| 121 | Method | childLink | Return the text that links to a child of the requested resource. |
| 155 | Method | render | Undocumented |
| 227 | Method | processingFailed | Undocumented |
| 245 | Method | notifyFinish | Notify when finishing the request |
| 256 | Method | connectionLost | connection was lost |
| 267 | Method | view_write | Remote version of write; same interface. |
| 272 | Method | view_finish | Remote version of finish; same interface. |
| 277 | Method | view_addCookie | Remote version of addCookie; same interface. |
| 282 | Method | view_setHeader | Remote version of setHeader; same interface. |
| 287 | Method | view_setLastModified | Remote version of setLastModified; same interface. |
| 292 | Method | view_setETag | Remote version of setETag; same interface. |
| 297 | Method | view_setResponseCode | Remote version of setResponseCode; same interface. |
| 302 | Method | view_registerProducer | Remote version of registerProducer; same interface. |
| 308 | Method | view_unregisterProducer | Undocumented |
| 350 | Method | prePathURL | Undocumented |
| 365 | Method | getRootURL | Get a previously-remembered URL. |
Inherited from Request (via Request):
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 494 | Method | noLongerQueued | Notify the object that it is no longer queued. |
| 520 | Method | gotLength | Called when HTTP channel got length of content in this request. |
| 530 | Method | parseCookies | Parse cookie headers. |
| 544 | Method | handleContentChunk | Write a chunk of data. |
| 551 | Method | requestReceived | Called by channel when all data has been received. |
| 600 | Method | __repr__ | Undocumented |
| 613 | Method | registerProducer | Register a producer. |
| 626 | Method | unregisterProducer | Unregister the producer. |
| 641 | Method | getHeader | Get a header that was sent from the network. |
| 646 | Method | getCookie | Get a cookie that was sent from the network. |
| 673 | Method | write | Write some data as a result of an HTTP request. The first |
| 726 | Method | addCookie | Set an outgoing HTTP cookie. |
| 748 | Method | setResponseCode | Set the HTTP response code. |
| 757 | Method | setHeader | Set an outgoing HTTP header. |
| 762 | Method | redirect | Utility function that does a redirect. |
| 770 | Method | setLastModified | Set the Last-Modified time for the response to this request. |
| 802 | Method | setETag | Set an entity tag for the outgoing response. |
| 833 | Method | getAllHeaders | Return dictionary of all headers the request received. |
| 837 | Method | getRequestHostname | Get the hostname that the user passed in to the request. |
| 847 | Method | getHost | Get my originally requesting transport's host. |
| 856 | Method | setHost | Change the host and port the request thinks it's using. |
| 876 | Method | getClientIP | Undocumented |
| 882 | Method | isSecure | Undocumented |
| 908 | Method | getUser | Undocumented |
| 916 | Method | getPassword | Undocumented |
| 924 | Method | getClient | Undocumented |
Inherited from Componentized (via Request):
| 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 Request, 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 |
| 300 | Method | __conform__ | Undocumented |
| 191 | Method | __getstate__ | Get state, adding a version number to it on its way out. |
| 191 | Method | __getstate__ | Get state, adding a version number to it on its way out. |
| 115 | Method | __init__ | |
| 600 | Method | __repr__ | Undocumented |
| 187 | Method | __setstate__ | Undocumented |
| 187 | Method | __setstate__ | Undocumented |
| 212 | Method | addAdapter | Utility method that calls addComponent. I take an adapter class and |
| 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. |
| 227 | Method | addComponent | Add a component to me, for all appropriate interfaces. |
| 726 | Method | addCookie | Set an outgoing HTTP cookie. |
| 121 | Method | childLink | Return the text that links to a child of the requested resource. |
| 256 | Method | connectionLost | connection was lost |
| 167 | Method | finish | We are finished writing data. |
| 170 | Method | finishRequest | Undocumented |
| 833 | Method | getAllHeaders | Return dictionary of all headers the request received. |
| 924 | Method | getClient | Undocumented |
| 876 | Method | getClientIP | Undocumented |
| 267 | Method | getComponent | Create or retrieve an adapter for the given interface. |
| 267 | Method | getComponent | Create or retrieve an adapter for the given interface. |
| 646 | Method | getCookie | Get a cookie that was sent from the network. |
| 641 | Method | getHeader | Get a header that was sent from the network. |
| 847 | Method | getHost | Get my originally requesting transport's host. |
| 916 | Method | getPassword | Undocumented |
| 837 | Method | getRequestHostname | Get the hostname that the user passed in to the request. |
| 365 | Method | getRootURL | Get a previously-remembered URL. |
| 199 | Method | getSession | Undocumented |
| 94 | Method | getStateToCopyFor | Undocumented |
| 908 | Method | getUser | Undocumented |
| 520 | Method | gotLength | Called when HTTP channel got length of content in this request. |
| 155 | Method | gotPageContext | Undocumented |
| 544 | Method | handleContentChunk | Write a chunk of data. |
| 882 | Method | isSecure | Undocumented |
| 206 | Method | locateAdapterClass | Undocumented |
| 206 | Method | locateAdapterClass | Undocumented |
| 494 | Method | noLongerQueued | Notify the object that it is no longer queued. |
| 245 | Method | notifyFinish | Notify when finishing the request |
| 530 | Method | parseCookies | Parse cookie headers. |
| 350 | Method | prePathURL | Undocumented |
| 119 | Method | process | Process a request. |
| 227 | Method | processingFailed | Undocumented |
| 762 | Method | redirect | Utility function that does a redirect. |
| 613 | Method | registerProducer | Register a producer. |
| 211 | Method | rememberRootURL | Remember the currently-processed part of the URL for later |
| 253 | Method | removeComponent | Remove the given component from me entirely, for all interfaces for which |
| 253 | Method | removeComponent | Remove the given component from me entirely, for all interfaces for which |
| 155 | Method | render | Undocumented |
| 551 | Method | requestReceived | Called by channel when all data has been received. |
| 209 | Method | setAdapter | Undocumented |
| 209 | Method | setAdapter | Undocumented |
| 222 | Method | setComponent | Undocumented |
| 222 | Method | setComponent | Undocumented |
| 802 | Method | setETag | Set an entity tag for the outgoing response. |
| 757 | Method | setHeader | Set an outgoing HTTP header. |
| 856 | Method | setHost | Change the host and port the request thinks it's using. |
| 770 | Method | setLastModified | Set the Last-Modified time for the response to this request. |
| 748 | Method | setResponseCode | Set the HTTP response code. |
| 114 | Method | sibLink | Return the text that links to a sibling of the requested resource. |
| 626 | Method | unregisterProducer | Unregister the producer. |
| 249 | Method | unsetComponent | Remove my component specified by the given interface class. |
| 249 | Method | unsetComponent | Remove my component specified by the given interface class. |
| 208 | Method | URLPath | Undocumented |
| 207 | Method | versionUpgrade | (internal) Do a version upgrade. |
| 207 | Method | versionUpgrade | (internal) Do a version upgrade. |
| 277 | Method | view_addCookie | Remote version of addCookie; same interface. |
| 272 | Method | view_finish | Remote version of finish; same interface. |
| 302 | Method | view_registerProducer | Remote version of registerProducer; same interface. |
| 292 | Method | view_setETag | Remote version of setETag; same interface. |
| 282 | Method | view_setHeader | Remote version of setHeader; same interface. |
| 287 | Method | view_setLastModified | Remote version of setLastModified; same interface. |
| 297 | Method | view_setResponseCode | Remote version of setResponseCode; same interface. |
| 308 | Method | view_unregisterProducer | Undocumented |
| 267 | Method | view_write | Remote version of write; same interface. |
| 673 | Method | write | Write some data as a result of an HTTP request. The first |
| Parameters | channel | the channel we're connected to. |
| queued | are we in the request queue, or can we start writing to the transport? |