maui-rest-api
Installation
SKILL.md
REST API Consumption — Gotchas & Best Practices
Common Mistakes
1. Creating HttpClient per request
// ❌ Creates socket exhaustion — each instance opens a new connection
public async Task<List<Item>> GetItemsAsync()
{
using var client = new HttpClient();
var response = await client.GetAsync("https://api.example.com/items");
// ...
}