Skip to content

Vibe coding a plugin? 😎 Teach your agent Modlumi first. Works with Claude Code, Codex, Cursor and more.

FetchResponse

The response to PluginContext.fetch. Its body reads once, as text, JSON or bytes, in the code that awaits the response; it isn’t kept for later.

readonly headers: object

entries(): [string, string][]

Lowercase names and values.

[string, string][]

get(name): string | null

A header’s value, its repeats joined with commas, or null; names ignore case.

string

string | null

has(name): boolean

string

boolean


readonly ok: boolean

Whether the status is from 200 to 299.


readonly status: number

bytes(): Uint8Array

Uint8Array


json(): unknown

unknown


text(): string

string