refactor service http request