move query interface into http folder