Conversation
Notices
-
FD (fujitastyle@tomodachica.app)'s status on Tuesday, 25-Aug-2020 01:08:49 JST FD function getHostmetaHandler(req::HTTP.Request) println("GET:/.well-known/host-meta") xml = XMLDocument() xrd = create_root(xml, "XRD") set_attribute(xrd, "xmlns", "http://docs.oasis-open.org/ns/xri/xrd-1.0") link = new_child(xrd, "Link") set_attribute(link, "rel", "lrdd") set_attribute(link, "type", "application/xrd+xml") template = string(BASEURL, "/.well-known/webfinger?resource={uri}") set_attribute(link, "template", template) return HTTP.Response(200, string(xml))end