represent http methods with flags instead of strings