Skip to content

NetResponse

The response that a plugin receives when it fetches a URL from a website with ctx.net.fetch. It holds the status code, the headers and the body of the response.

readonly body: string;

The body of the response, as text.


readonly headers: Readonly<Record<string, string>>;

The headers of the response, indexed by name.


readonly status: number;

The HTTP status code of the response, for example 200.