HTTP front-end and refactored structure.