full-stack-skills/tauri-skills / skills/tauri-app-http-client
tauri-app-http-client
VerifiedGuidance for Tauri v2 http-client plugin with allowlisted requests and secure transport.
| File | Kind | Size |
|---|---|---|
| LICENSE.txt | markdown | 11.1 KB |
| SKILL.md | skill md | 2.1 KB |
| agents/openai.yaml | config | 301 B |
| examples/usage.md | markdown | 1.3 KB |
| templates/capabilities.json | config | 415 B |
examples/usage.md
View on GitHub# Usage: tauri-app-http-client
This document provides at least 5 usage examples for the **tauri-app-http-client** skill.
## Example 1: GET Request
```typescript
import { fetch } from '@tauri-apps/plugin-http';
const response = await fetch('https://api.example.com/data');
const data = await response.json();
```
## Example 2: POST Request
```typescript
import { fetch } from '@tauri-apps/plugin-http';
const response = await fetch('https://api.example.com/users', {
method: 'POST',
body: JSON.stringify({ name: 'Tauri' }),
headers: { 'Content-Type': 'application/json' }
});
```
## Example 3: Request with Headers
```typescript
const response = await fetch('https://api.example.com/secret', {
headers: {
'Authorization': 'Bearer token'
}
});
```
## Example 4: Set Request Timeout
```typescript
import { fetch } from '@tauri-apps/plugin-http';
// Timeout is often handled via AbortController in standard fetch API
const controller = new AbortController();
const id = setTimeout(() => controller.abort(), 5000);
await fetch(url, { signal: controller.signal });
```
## Example 5: Configure Allowed URLs
```typescript
// In src-tauri/capabilities/default.json
{
"permissions": [
{
"identifier": "http:default",
"allow": [{ "url": "https://*.example.com" }]
}
]
}
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |