query(self,
xri,
service_types)
Resolve some services for an XRI.
Note: I don't implement any service endpoint selection beyond what
the resolver I'm querying does, so the Services I return may well
include Services that were not of the types you asked for.
May raise fetchers.HTTPFetchingError or etxrd.XRDSError
if the fetching or parsing don't go so well.
-
- Parameters:
xri -
An XRI to resolve.
(type=unicode)
service_types -
A list of services types to query for. Service types are
URIs.
(type=list of str)
- Returns:
-
tuple of (CanonicalID, Service elements)
(type=(unicode, list of ElementTree.Element s))
|