• Overview
@angular/common/http

FetchBackend

Class

Uses fetch to send requests to a backend server.

API

  
    class FetchBackend implements HttpBackend {}
  
  

handle

Observable<HttpEvent<any>>
@paramrequestHttpRequest<any>
@returnsObservable<HttpEvent<any>>

Description

Uses fetch to send requests to a backend server.

This FetchBackend requires the support of the Fetch API which is available on all supported browsers and on Node.js v18 or later.

Jump to details