Table Of Contents

Previous topic

Partitioned Consistent Hash Ring

Next topic

Account

This Page

Psst... hey. Did you know you can read about Swift at docs.openstack.org also? Plus you can get to past versions atSwift 1.3 docs and Swift 1.2 docs.

Proxy

Proxy Server

class swift.proxy.server.Application(conf, memcache=None, logger=None, account_ring=None, container_ring=None, object_ring=None)

Bases: object

WSGI application for the proxy server.

get_controller(path)

Get the controller to handle a request.

Parameters:path – path from request
Returns:tuple of (controller class, path dictionary)
Raises :ValueError (thrown by split_path) if given invalid path
handle_request(req)

Entry point for proxy server. Should return a WSGI-style callable (such as webob.Response).

Parameters:req – webob.Request object
update_request(req)
swift.proxy.server.app_factory(global_conf, **local_conf)

paste.deploy app factory for creating WSGI proxy apps.