YADIS_HEADER_NAME | = | 'X-XRDS-Location' | ||
YADIS_CONTENT_TYPE | = | 'application/xrds+xml' | ||
YADIS_ACCEPT_HEADER | = | generate_accept_header( ['text/html', 0.3], ['application/xhtml+xml', 0.5], [YADIS_CONTENT_TYPE, 1.0] | A value suitable for using as an accept header when performing YADIS discovery, unless the application has special requirements | |
XRD_NS_2_0 | = | 'xri://$xrd*($v*2.0)' | ||
XRDS_NS | = | 'xri://$xrds' | ||
XRDS_NAMESPACES | = | { 'xrds' => XRDS_NS, 'xrd' => XRD_NS_2_0, } |
Discover services for a given URI.
uri: The identity URI as a well-formed http or https URI. The well-formedness and the protocol are not checked, but the results of this function are undefined if those properties do not hold.
returns a DiscoveryResult object
Raises DiscoveryFailure when the HTTP response does not have a 200 code.
Convert a filter-convertable thing into a filter
parts should be a filter, an endpoint, a callable, or a list of any of these.
Create a filter out of a list of filter-like things
Used by make_filter
parts should be a list of things that can be passed to make_filter
Given a HTTPResponse, return the location of the Yadis document.
May be the URL just retrieved, another URL, or None, if I can‘t find any.
[non-blocking]