Skip to content

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

@filipebarcos

Description

@filipebarcos

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]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions