def create_request_object(request_dict):
 r = request_dict
 request_object = AWSRequest(method=r['method'], url=r['url'], data=r['body'], headers=r['headers'])
 request_object.context.update(r['context'])
 return request_object

def create_request_object ( request_dict ) : r = request_dict request_object = AWSRequest ( method = r [ 'method' ] , url = r [ 'url' ] , data = r [ 'body' ] , headers = r [ 'headers' ] ) request_object . context . update ( r [ 'context' ] ) return request_object
this method takes a request dict and creates an awsrequest object from it .