Skip to content

A custom Axios adapter for Tauri v2, designed to seamlessly integrate HTTP requests within Tauri applications.

License

Notifications You must be signed in to change notification settings

CHENGTIANG/tauri-axios-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tauri-axios-adapter

A custom Axios adapter for Tauri v2, designed to seamlessly integrate HTTP requests within Tauri applications.

Installation

Install the package via npm or yarn:

npm install tauri-axios-adapter

or

yarn add tauri-axios-adapter

Usage

Here’s how you can use the tauri-axios-adapter in your Tauri project:

import axios from "axios";
import tauriAxiosAdapter from "tauri-axios-adapter";

const apiClient = axios.create({
  adapter: tauriAxiosAdapter,
});

// Example request
apiClient
  .get("http://localhost:8000/example-endpoint")
  .then((response) => console.log(response.data))
  .catch((error) => console.error(error));

License

MIT

About

A custom Axios adapter for Tauri v2, designed to seamlessly integrate HTTP requests within Tauri applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published