Extracted dependency HTTP/1.x related header stuff into common method