Refactored HttpInput.State to use more modern Enum form.