l.t.s.f.SwiftObject(resource.Resource) : class documentation

Part of lp.testing.swift.fakeswift View In Hierarchy

A Swift storage object.
Method __init__ Undocumented
Method __getstate__ Undocumented
Method set_contents Undocumented
Method get_etag Build an ETag value. Extra quotes are mandated by standards.
Method set_date Set the object's time.
Method get_date Get the object's time.
Method get_size Returns size of object's contents.
Method render_GET Render the response for a GET or HEAD request on this object.
Method render_PUT Accept the incoming data for a PUT request.
def __init__(self, container, name, contents=None, content_type='application/octet-stream', content_md5=None):
Undocumented
def __getstate__(self):
Undocumented
def set_contents(self, contents=None, content_type=None, content_md5=None):
Undocumented
def get_etag(self):
Build an ETag value. Extra quotes are mandated by standards.
def set_date(self, datestr):
Set the object's time.
def get_date(self):
Get the object's time.
def get_size(self):
Returns size of object's contents.
def render_GET(self, request):
Render the response for a GET or HEAD request on this object.
def render_PUT(self, request):
Accept the incoming data for a PUT request.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.