API reference

petty.network

permission: network

petty.network.fetch

fetch(url: string, callback: (result: FetchResult | null) => void): void

Types referenced

FetchResult

interface FetchResult {
  status: number;
  body: string;
  json: unknown | null;
}