How to get web headers after successful web response

I’ve been using woocommerce rest api. For update and delete items in cart, cart-token is required. That cart-token is provided by woocommerce rest-api in headers after getting cart items. but there is no block in web web component to get the headers. Can anyone suggest how to get headers, from there i can get cart-token

I believe its not possible with a web component, you can maybe use a webviewer with html to make the request and print out the headers.

Have you tried anything so far?

No, can you help me how to do it.
Thanks in advance

I am looking into it, maybe we can update the component

We have released an update for this! The GotText and GotFile now provides headers.

Thanks. Try to enable feature in released version as soon as possible.

Do test it in beta and let me know if your application works well. Your feedback lets us ship features into main quicker.