← All recipes
Moderne licensed

Find HttpXhrBackend usage

Recipe IDorg.openrewrite.angular.search.find-http-xhr-backend-usageArtifact@openrewrite/recipes-angular

Finds imports of HttpXhrBackend from @angular/common/http. Angular 22 uses the Fetch API by default; add withXhr() to provideHttpClient() to keep using XMLHttpRequest, which is also required for upload progress reports.

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.angular.search.find-http-xhr-backend-usage

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-angular