RemoveResources removes the resources with the given URIs. It is not an error to remove a nonexistent resource.
(uris ...string)
| 530 | // RemoveResources removes the resources with the given URIs. |
| 531 | // It is not an error to remove a nonexistent resource. |
| 532 | func (s *Server) RemoveResources(uris ...string) { |
| 533 | s.changeAndNotify(notificationResourceListChanged, func() bool { return s.resources.remove(uris...) }) |
| 534 | } |
| 535 | |
| 536 | // AddResourceTemplate adds a [ResourceTemplate] to the server, or replaces one with the same URI. |
| 537 | // AddResourceTemplate panics if a URI template is invalid or not absolute (has an empty scheme). |