Description
Describe the enhancement
when building new apps for cockpit we sometimes need access to a header after a rest call.
as an example for my usecase, haproxy dataplane api offers a header in a response to get the config file version of what you just recieved. up to v2 api of them the send this with the body itself, from v3 onwards the version is now only present in a dedicated call or from the retrieved header.
having access to the headers would allow me to reduce the amount of traffic im producing.
maybe ill add the repo here later, but currently this was the result of a few hours of brainstorming.
i tink a good way to solve this would be to have the call request
or get
and so on return a Promise<response>
where response
allowws access to body
, headers
and maybe some other things.
Another thing to consider here would be the security implications this would have. Maybe someone else can add, what kind of informations could be missused.
Which page, if applicable, is this related to?
Unknown/None