on 11-07-2022 10:13 PM
Hi,
I have a scenario where I need to access the remote service response headers after having made a call like so
const svc = await cds.connect.to('someservice')
let results = svc.tx(req).send(somequery);
// Here, results contains the parsed response payload, but I cannot find the response headers
What is the appropriate way to do this? I have tried constructing a cds.Request first and then emitting it, but I cannot find the headers anywhere in the request object after the call completes either.
Thanks!
//Carl
Hi,
this is unfortunately not possible right now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, is it planned for the future? It can be worked around either by "patch-package" or using the cloud-sdk in these scenarios for example, but it is inconvenient.
Thanks!
//Carl
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.