Refactored HttpInput to use poison pills