extract HttpTask to separated file