Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add request/response headers to response state #62

Open
filipebarcos opened this issue Nov 11, 2024 · 0 comments
Open

Comments

@filipebarcos
Copy link

This is just a feature request. When we submit the VGS form, it's often forwarding/proxying the request to elsewhere. These requests often come with useful headers, like idempotency keys or request IDs that could be useful to have handy for investigations when things go wrong (specially).

const [response] = useVGSCollectResponse();

useEffect(() => {
  console.dir({ 
    headers: { 
      response: response.headers, 
      request: response.requestHeaders,
    }, 
  });
}, [response]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant