buildListRootsRequest

Creates a ListRootsRequest using a type-safe DSL builder.

Optional

  • meta - Metadata for the request

Example with no parameters:

val request = buildListRootsRequest { }

Example with metadata:

val request = buildListRootsRequest {
meta {
put("context", "initialization")
}
}

Return

A configured ListRootsRequest instance

Parameters

block

Configuration lambda for setting up the list roots request

See also