Skip to main content
Defined in: server/resource.ts:45 Escape hatch for full control over resource response content. Return this from a resource handler to specify content directly.

Constructors

Constructor

new ResourceResult(contents): ResourceResult;
Defined in: server/resource.ts:46

Parameters

contents
{ blob?: string; mimeType?: string; text?: string; uri: string; }[]

Returns

ResourceResult

Properties

contents

readonly contents: {
  blob?: string;
  mimeType?: string;
  text?: string;
  uri: string;
}[];
Defined in: server/resource.ts:47

blob?

optional blob?: string;

mimeType?

optional mimeType?: string;

text?

optional text?: string;

uri

uri: string;