| |
- WebKit.Message.Message(__builtin__.object)
-
- Request
class Request(WebKit.Message.Message) |
|
The abstract request class.
Request is a type of Message that offers the following:
* A time stamp (indicating when the request was made)
* An input stream
* Remote request information (address, name)
* Local host information (address, name, port)
* A security indicator
Request is an abstract class; developers typically use HTTPRequest.
FUTURE
* Consider if the local host information should be moved up to Message.
* Locales
* Secure requests, authentication, etc. |
|
- Method resolution order:
- Request
- WebKit.Message.Message
- __builtin__.object
Methods defined here:
- __init__(self)
- Initialize the request.
Subclasses are responsible for invoking super
and initializing self._time.
- clearTransaction(self)
- input(self)
- Return a file-style object that the contents can be read from.
# @@ 2000-05-03 ce: This is bogus. Disregard for now.
- localAddress(self)
- Get local address.
Returns a string containing the Internet Protocol (IP) address
of the local host (e.g., the server) that received the request.
- localPort(self)
- Get local port.
Returns the port of the local host (e.g., the server)
that received the request.
- remoteAddress(self)
- Get the remote address.
Returns a string containing the Internet Protocol (IP) address
of the client that sent the request.
- remoteName(self)
- Get the remote name.
Returns the fully qualified name of the client that sent the request,
or the IP address of the client if the name cannot be determined.
- responseClass(self)
- Get the corresponding response class.
- setTransaction(self, trans)
- Set a transaction container.
- time(self)
- timeStamp(self)
- Return time() as a human readable string, useful for logging and debugging.
- transaction(self)
- Get the transaction container.
Static methods defined here:
- isSecure()
- Check whether this is a secure channel.
Returns true if request was made using a secure channel,
such as HTTPS. This currently always returns false,
since secure channels are not yet supported.
- localName()
- Get local name.
Returns the fully qualified name of the local host (e.g., the server)
that received the request.
Methods inherited from WebKit.Message.Message:
- arg(self, name, default=<class 'MiscUtils.NoDefault'>)
- argNames(self)
- Return a list of argument names.
- clearArgs(self)
- deleteArg(self, name)
- hasArg(self, name)
- setArg(self, name, value)
- writeExceptionReport(self, handler)
Static methods inherited from WebKit.Message.Message:
- contentLength()
- Return the length of the message body or -1 if not known.
- contentType()
- Return the MIME type of the message body or None if not known.
- protocol()
- Return the protocol.
Returns the name and version of the protocol the message uses
in the form protocol/majorVersion.minorVersion, for example, HTTP/1.1.
Data descriptors inherited from WebKit.Message.Message:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |