I would like to create a "global" request interceptor for request-promise based requests so that I can add an x-request-id header to all outgoing requests. Since the behavior is common across all outgoing requests, I prefer to not have to add this functionality everywhere that I am making a request.
I don't notice such functionality in the library documentation.
via Richard Collette
No comments:
Post a Comment