def filter_headers_key(remove_headers):
 def filter(headers):
  return filter_headers(headers, remove_headers)
 return filter

def filter_headers_key ( remove_headers ) : def filter ( headers ) : return filter_headers ( headers , remove_headers ) return filter
returns a key function that produces a key by removing headers from a dict .