Module OpenID::Yadis
In: lib/openid/yadis/accept.rb
lib/openid/yadis/constants.rb
lib/openid/yadis/discovery.rb
lib/openid/yadis/filters.rb
lib/openid/yadis/parsehtml.rb
lib/openid/yadis/services.rb
lib/openid/yadis/xrds.rb
lib/openid/yadis/xri.rb
lib/openid/yadis/xrires.rb

Methods

Classes and Modules

Module OpenID::Yadis::XRI
Class OpenID::Yadis::BasicServiceEndpoint
Class OpenID::Yadis::CompoundFilter
Class OpenID::Yadis::DiscoveryResult
Class OpenID::Yadis::TransformFilterMaker
Class OpenID::Yadis::XRDSError
Class OpenID::Yadis::XRDSFraud

Constants

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, }

Public Class methods

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.

aka iterServices in Python

Generate an accept header value

str or (str, float)
-> str

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

Sort a list of elements that have priority attributes.

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]

[Validate]