Polyjuice Client v0.3.1 Polyjuice.Client.WellKnown View Source
Look up and interpret a server's .well-known
file.
https://matrix.org/docs/spec/client_server/latest#well-known-uri
Link to this section Summary
Functions
Get and parse a server's .well-known
file based on its server name.
Get a server's .well-known
file based on its server name.
Get the homeserver that's specified in a .well-known
file.
Get the identity server that's specified in a .well-known
file.
Link to this section Functions
Get and parse a server's .well-known
file based on its server name.
If the homeserver information is correct, returns a tuple of the form {:ok, homeserver_url, identity_server_url, well_known}
, where
identity_server_url
is either a string giving the identity server's URL,
nil
indicating no identity server was specified, or :fail_error
indicating an error in fetching the identity server URL; and well_known
is
the full contents of the well_known file.
This function is essentially equivalent to calling get_for_server
followed
by get_homeserver
and get_identity_server
.
Get a server's .well-known
file based on its server name.
Get the homeserver that's specified in a .well-known
file.
Get the identity server that's specified in a .well-known
file.