Remove process_input
convert response headers to a dict