Implemented skeleton of the HttpObjectEncoder.