Basic Kinesis Stream CRUD.

This commit is contained in:
Steve Pulec 2014-11-26 10:55:58 -05:00
commit da15fb711d
10 changed files with 246 additions and 0 deletions

View file

@ -90,6 +90,12 @@ class BaseResponse(object):
def call_action(self):
headers = self.response_headers
action = self.querystring.get('Action', [""])[0]
if not action: # Some services use a header for the action
# Headers are case-insensitive. Probably a better way to do this.
match = self.headers.get('x-amz-target') or self.headers.get('X-Amz-Target')
if match:
action = match.split(".")[1]
action = camelcase_to_underscores(action)
method_names = method_names_from_class(self.__class__)
if action in method_names: