CapacitorHttp
The Capacitor Http API provides native http support via patching fetch
and XMLHttpRequest
to use native libraries. It also provides helper methods for native http requests without the use of fetch
and XMLHttpRequest
. This plugin is bundled with @capacitor/core
.
Configuration
By default, the patching of window.fetch
and XMLHttpRequest
to use native libraries is disabled.
If you would like to enable this feature, modify the configuration below in the capacitor.config
file.
Prop | Type | Description | Default |
---|---|---|---|
enabled | boolean | Enable the patching of fetch and XMLHttpRequest to use native libraries instead. | false |