'Loops through any provided JSON formatted \'requests\', aggregates their
JSON responses, and wraps them in the batch call response.'

def process_batch_requests(self, batch_environ, start_response):

    payload = self._read_post_payload(batch_environ)
    requests = payload.get('batch', [])
    responses = []
    for request in requests:
        if (not self._is_allowed_route(request['url'])):
            responses.append(self._disallowed_route_response(request['url']))
            continue
        request_environ = self._build_request_environ(batch_environ, request)
        response = self._process_batch_request(request, request_environ, start_response)
        responses.append(response)
    batch_response_body = json.dumps(responses)
    start_response('200    OK', [('Content-Length', len(batch_response_body)), ('Content-Type', 'application/json')])
    return batch_response_body
