def response_namespace(k, v):
 if (k[:8] == 'headers.'):
  cherrypy.serving.response.headers[k.split('.', 1)[1]] = v
 else:
  setattr(cherrypy.serving.response, k, v)

def response_namespace ( k , v ) : if ( k [ : 8 ] == 'headers.' ) : cherrypy . serving . response . headers [ k . split ( '.' , 1 ) [ 1 ] ] = v else : setattr ( cherrypy . serving . response , k , v )
attach response attributes declared in config .