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

Access to full or contextual request URL on http event. #327

Closed
plfx opened this issue Sep 26, 2017 · 1 comment
Closed

Access to full or contextual request URL on http event. #327

plfx opened this issue Sep 26, 2017 · 1 comment
Milestone

Comments

@plfx
Copy link
Contributor

plfx commented Sep 26, 2017

This is a Feature Proposal

In handling an incoming HTTP event, I need my handler to effectively make requests to "relative" urls, which it must do by constructing a new request URL relative to the incoming request URL. The current HTTP event only reports the subscription path that was answered, and does not include either the hostname, full request URL, or the gateway URL.

  1. A handler is mapped to /login
  2. The handler needs to make a request to /users
  3. The handler receives an event in response to a request to http://my-gateway.example/xyz/login
  4. The event should have fields for both the path: "/login" and the gatewayUrl: "http://my-gateway.example/xyz/"
  5. The handler uses the gateway url and adds /users to make a request to http://my-gateway.example/xyz/users
@mthenw
Copy link
Contributor

mthenw commented Oct 25, 2017

@plfx I've added host field in HTTP event. Let me know if this doesn't solve your issue.

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

2 participants