I have a DAV protocol that stores out-of-band data in the url anchor, e.g. the ghi in DELETE /abc.def#ghi. The server is a Flask application.
ghi
DELETE /abc.def#ghi
You can do this using flask.url_for with the _anchor keyword argument:
_anchor
url_for('abc.def', _anchor='ghi')