I’m actually done with necessary upgrades to the proxy generation tool. The code seems to be correct now, but my demo ceased to work. It fails on the authentication. I wonder which my recent (or even older) modification broke that.
I also need to make HTTP headers alternative for non-RDF payloads. I think that HTTP Link header will do the trick as it allows to define own relation types. Something like this might actually be pretty valid:
GET /api/person ... HTTP/1.1 200 OK Link: <http://www.w3.org/ns/hydra/core#Collection>; rel="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
I’ll have to remember to include these in the Access-Control headers as the browser won’t let me touch those in the script.
Still plenty of work ahead.