Home | Trees | Index | Help |
|
---|
Package twisted :: Package web :: Module distrib :: Class Request |
|
Unjellyable
--+ |RemoteCopy
--+ |Versioned
--+ | | |Componentized
--+ | | |Jellyable
--+ | | | | |Serializable
--+ | | | | |Copyable
--+ | | |Request
--+ | | |Request
--+ | Request
Method Summary | |
---|---|
fail(self,
failure)
| |
Register a producer. | |
I will be invoked with the state to copy locally. | |
Unregister the producer. | |
Inherited from RemoteCopy | |
| |
Inherited from Unjellyable | |
| |
Inherited from Request | |
| |
Return the text that links to a child of the requested resource. | |
connection was lost | |
We are finished writing data. | |
Get a previously-remembered URL. | |
| |
| |
Notify when finishing the request | |
| |
Process a request. | |
| |
Remember the currently-processed part of the URL for later recalling. | |
| |
Return the text that links to a sibling of the requested resource. | |
| |
Remote version of addCookie; same interface. | |
Remote version of finish; same interface. | |
Remote version of registerProducer; same interface. | |
Remote version of setETag; same interface. | |
Remote version of setHeader; same interface. | |
Remote version of setLastModified; same interface. | |
Remote version of setResponseCode; same interface. | |
| |
Remote version of write; same interface. | |
Inherited from Copyable | |
Gather state to send when I am serialized for a peer. | |
Determine what type tag to send for me. | |
Determine what type tag to send for me. | |
Assemble type tag and state to copy for this broker. | |
Inherited from Serializable | |
Return an ID which uniquely represents this object for this process. | |
Inherited from Jellyable | |
| |
Inherited from Request | |
| |
| |
Called when have finished responding and are no longer queued. | |
| |
Set an outgoing HTTP cookie. | |
Return dictionary of all headers the request received. | |
| |
| |
Get a cookie that was sent from the network. | |
Get a header that was sent from the network. | |
Get my originally requesting transport's host. | |
| |
Get the hostname that the user passed in to the request. | |
| |
Called when HTTP channel got length of content in this request. | |
Write a chunk of data. | |
| |
Notify the object that it is no longer queued. | |
Parse cookie headers. | |
Utility function that does a redirect. | |
Called by channel when all data has been received. | |
Set an entity tag for the outgoing response. | |
Set an outgoing HTTP header. | |
Change the host and port the request thinks it's using. | |
Set the Last-Modified time for the response to this request. | |
Set the HTTP response code. | |
Write some data as a result of an HTTP request. | |
Inherited from Componentized | |
Utility method that calls addComponent. | |
Add a component to me, for all appropriate interfaces. | |
Create or retrieve an adapter for the given interface. | |
| |
Remove the given component from me entirely, for all interfaces for which it has been registered. | |
| |
| |
Remove my component specified by the given interface class. | |
| |
Inherited from Versioned | |
Get state, adding a version number to it on its way out. | |
| |
(internal) Do a version upgrade. |
Instance Variable Summary | |
---|---|
Inherited from Request | |
A mapping of strings (the argument names) to lists of values. i.e., ?foo=bar&foo=baz&quux=spam results in {'foo': ['bar', 'baz'], 'quux': ['spam']}. | args : All of the arguments, including URL and POST arguments. |
str |
method : The HTTP method that was used. |
path : The path only (arguments not included). | |
received_headers : All received headers | |
str |
uri : The full URI that was requested (includes arguments). |
Class Variable Summary | |
---|---|
Inherited from Unjellyable | |
tuple |
__implements__ = (<class twisted.spread.interfaces.IUnje...
|
Inherited from Request | |
str |
__pychecker__ = 'unusednames=issuer'
|
NoneType |
appRootURL = None |
NoneType |
session = None |
NoneType |
site = None |
Inherited from Request | |
int |
_forceSSL = 0 |
int |
chunked = 0 |
str |
clientproto = '(no clientproto yet)'
|
int |
code = 200 |
str |
code_message = 'OK'
|
NoneType |
etag = None |
int |
finished = 0 |
NoneType |
lastModified = None |
NoneType |
producer = None |
int |
sentLength = 0 |
int |
startedWriting = 0 |
Inherited from Componentized | |
int |
persistenceVersion = 1 |
Inherited from Versioned | |
tuple |
persistenceForgets = ()
|
Method Details |
---|
registerProducer(self, producer, streaming)Register a producer.
|
setCopyableState(self, state)I will be invoked with the state to copy locally. 'state' is the data returned from the remote object's 'getStateToCopyFor' method, which will often be the remote object's dictionary (or a filtered approximation of it depending on my peer's perspective).
|
unregisterProducer(self)Unregister the producer.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:05 2004 | http://epydoc.sf.net |