Basic Kinesis Stream CRUD.
This commit is contained in:
parent
5c589b24af
commit
da15fb711d
10 changed files with 246 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue