add class httpresource