def apply_caching ( response ) : for k , v in config . get ( 'HTTP_HEADERS' ) . items ( ) : response . headers [ k ] = v return response
python basehttpserver header set nocache
Applies the configuration s http headers to all responses
def apply_caching(response):
    """Applies the configuration's http headers to all responses"""
    for k, v in config.get('HTTP_HEADERS').items():
        response.headers[k] = v
    return response