creates HEAD handler for each GET handler