Re: Content-Negotiation Issues (conneg)

On 24 Mar 2023, at 20:38, Manton Reece wrote:

> that URL is going to be opened in a web browser by Mastodon to view 
> the
> user's profile, so the server has to be smart about returning JSON or
> HTML.

that was easy with xml + xslt but became impossible with json supporting 
neither xslt nor grddl. But maybe the way round, html embedding json-ld 
would be an option? Complicates the parser but, hey, that's what json is 
good for in the first place.

And Webfinger could advertise different endpoints for different 
real/type or the html could tell a rel="alternate" json url.

Brings a requirement to look into html, though.

regards
Marcus

Received on Friday, 24 March 2023 22:26:57 UTC