예제 #1
0
def get_coverage(request):
    if 'X-Coverage' in request.headers:
        return request.headers['X-Coverage']
    raise HeaderAbsent("The parameter X-Coverage does not exist in the header")
예제 #2
0
def get_contributor_code(request):
    if 'X-Contributors' in request.headers:
        return request.headers['X-Contributors']
    raise HeaderAbsent(
        "The parameter X-Contributors does not exist in the header")
예제 #3
0
def get_token(request):
    if 'Authorization' in request.headers:
        return request.headers['Authorization']
    raise HeaderAbsent(
        "The parameter Authorization does not exist in the header")
예제 #4
0
def get_client_code(request):
    if 'X-Customer-Id' in request.headers:
        return request.headers['X-Customer-Id']
    raise HeaderAbsent(
        "The parameter X-Customer-Id does not exist in the header")