readResource

suspend fun readResource(request: ReadResourceRequest, options: RequestOptions? = null): ReadResourceResult?(source)

Reads a resource from the server by its URI.

Return

The resource content, or null if the resource is not found.

Parameters

request

The request object containing the resource URI.

options

Optional request options.

Throws

If the server does not support resources.