Bases: swift.proxy.server.Controller
WSGI controller for account requests
Handler for HTTP GET/HEAD requests.
Bases: swift.proxy.server.BaseApplication
WSGI application for the proxy server.
Check for rate limiting.
Parameters: |
|
---|
Wraps the BaseApplication.handle_request and logs the request.
Bases: object
Base WSGI application for the proxy server
Check for rate limiting.
Get the controller to handle a request.
Parameters: |
|
---|---|
Returns: | tuple of (controller class, path dictionary) |
Entry point for proxy server. Should return a WSGI-style callable (such as webob.Response).
Parameters: |
|
---|
Bases: swift.proxy.server.Controller
WSGI controller for container requests
HTTP DELETE request handler.
Handler for HTTP GET/HEAD requests.
HTTP PUT request handler.
Bases: object
Base WSGI controller class for the proxy
Handler for HTTP GET requests.
Base handler for HTTP GET or HEAD requests.
Parameters: |
|
---|---|
Returns: | webob.Response object |
Handler for HTTP HEAD requests.
Get account information, and also verify that the account exists.
Parameters: |
|
---|---|
Returns: | tuple of (account partition, account nodes) or (None, None) if it does not exist |
Given a list of responses from several servers, choose the best to return to the API.
Parameters: |
|
---|---|
Returns: | webob.Response object with the correct status, body, etc. set |
Get container information and thusly verify container existance. This will also make a call to account_info to verify that the account exists.
Parameters: |
|
---|---|
Returns: | tuple of (container partition, container nodes) or (None, None) if the container does not exist |
Handles incrementing error counts when talking to nodes.
Parameters: |
|
---|
Mark a node as error limited.
Parameters: |
|
---|
Check if the node is currently error limited.
Parameters: |
|
---|---|
Returns: | True if error limited, False otherwise |
Handle logging, and handling of errors.
Parameters: |
|
---|
Handle logging of generic exceptions.
Parameters: |
|
---|
Returns ring.replica_count nodes; the nodes will not be error limited, if possible.
Node iterator that will first iterate over the normal nodes for a partition and then the handoff partitions for the node.
Parameters: |
|
---|
Bases: swift.proxy.server.Controller
WSGI controller for object requests.
HTTP COPY request handler.
HTTP DELETE request handler.
Handle HTTP GET or HEAD requests.
HTTP POST request handler.
HTTP PUT request handler.
Handle common POST/DELETE functionality
Parameters: |
|
---|
Decorator to declare which methods are public accessible as HTTP requests
Parameters: |
|
---|
Helper function to update headers in the response.
Parameters: |
|
---|