Add to_http method and add validation in append method.