

def set_response_defaults(self, response, request=None):
    'Sets up the response defaults that are defined in the URL route'
    for (header_name, header_value) in self.response_headers:
        response.set_header(header_name, header_value)
    if self.set_status:
        response.status = self.set_status
    response.content_type = self.content_type(request, header_value)

dataset/ETHPy150Open timothycrosley/hug/hug/interface.py HTTP.set_response_defaults/VarMisuse@67/110 `response`->`header_value`