Package apt_p2p :: Module HTTPServer :: Class PiecesUploader
[hide private]
[frames] | no frames]

Class PiecesUploader

source code


Modified to identify it for peer requests.

Uses the modified Streams.PiecesUploadStream to stream the pieces for throttling.

Instance Methods [hide private]
 
render(self, req)
Subclasses should implement this method to do page rendering.
source code

Inherited from twisted.web2.static.Data: __init__, contentLength, contentType, creationDate, etag, lastModified

Inherited from twisted.web2.resource.Resource: child_, http_GET, locateChild, putChild

Inherited from twisted.web2.resource.RenderMixin: __providedBy__, allowedMethods, checkPreconditions, http_HEAD, http_OPTIONS, http_TRACE, renderHTTP

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]

Inherited from twisted.web2.resource.Resource: __implemented__, __provides__, addSlash

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

render(self, req)

source code 

Subclasses should implement this method to do page rendering. See http_GET.

Parameters:
  • request - the request to process.
Returns:
an object adaptable to iweb.IResponse.
Overrides: twisted.web2.resource.RenderMixin.render
(inherited documentation)