Trees | Indices | Help |
---|
|
twisted.internet.protocol.BaseProtocol --+ | twisted.internet.protocol.Protocol --+ | extern.log.log.Loggable --+ | PorterProtocol --+ | HTTPPorterProtocol
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
scheme =
|
|||
protos =
|
|||
requestIdParameter =
|
|||
requestIdBitsNo = 256
|
|||
Inherited from Inherited from Inherited from |
|
Parse the initial line of the request. Return an object that can be used to uniquely identify the stream being requested by passing it to extractIdentifier, or None if the request is unreadable. Subclasses should override this.
|
Recreate the initial request line from the parsed representation. The recreated line does not need to be exactly identical, but both parsedLine(unparseLine(line)) and line should contain the same information (i.e. unparseLine should not lose information). UnparseLine has to return a valid line from the porter protocol's scheme point of view (for instance, HTTP). Subclasses should override this.
|
Return a string that will uniquely identify the request. Subclasses should override this if they want to use request-ids and also implement injectRequestId.
|
Take the parsed representation of the first request line and a string token, return a parsed representation of the request line with the request-id possibly mixed into it. Subclasses should override this if they generate request-ids.
|
Extract a string that uniquely identifies the requested stream from the parsed representation of the first request line. Subclasses should override this, depending on how they implemented parseLine.
|
Write a response indicating that the requested resource was not found in this protocol. Subclasses should override this to use the correct protocol.
|
Write a response indicating that the requested resource was temporarily uavailable in this protocol. Subclasses should override this to use the correct protocol.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 13 06:17:06 2013 | http://epydoc.sourceforge.net |