Skip to main content

fetch

Perform an HTTP request server-side. It follows the DOM fetch argument structure.

Examples

// a simple GET request
const response = await manager.fetch('https://api.example.com/api');
const result = await response.json();
await manager.fetch("https://api.example.com/api", {
method: "POST",
body: JSON.stringify({ data: "my data" }),
});