MCPcopy Create free account
hub / github.com/pollinations/pollinations / R2ObjectBody

Interface R2ObjectBody

enter.pollinations.ai/worker-runtime.d.ts:1959–1967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1957 writeHttpMetadata(headers: Headers): void;
1958}
1959interface R2ObjectBody extends R2Object {
1960 get body(): ReadableStream;
1961 get bodyUsed(): boolean;
1962 arrayBuffer(): Promise<ArrayBuffer>;
1963 bytes(): Promise<Uint8Array>;
1964 text(): Promise<string>;
1965 json<T>(): Promise<T>;
1966 blob(): Promise<Blob>;
1967}
1968type R2Range = {
1969 offset: number;
1970 length?: number;

Callers 35

createMediaCacheFunction · 0.80
createDocsRoutesFunction · 0.80
generateFunction · 0.80
imageMethod · 0.80
resolveImageItemMethod · 0.80
videoMethod · 0.80
audioMethod · 0.80
audioSpeechMethod · 0.80
fetchBinaryWithAuthFunction · 0.80
createVideoCommandFunction · 0.80
createAudioCommandFunction · 0.80
transcribeMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected