Retrieve Full URL in middleware

It would be nice to be able to get the full url requested in the middleware. This is really useful for people who use the same slugs but on different custom domains.

Hi dmtroll,

we considered your recommendation and took note of it.

It will be included in our next release.

Thanks,

Kos @ Tyk Support Team

Is this feature available in tyk v2.3.3? I want to get the query parameters in the pre chain. I am using middleware for this purpose. Only able to get the base URL and not the query parameters.

Hi Sai Ram,

you can get the parameters using request.Params. Here is a middleware sample that might might be useful.

Thanks,
Kos @ Tyk Support Team

Thanks I figured it out manually.
Request structure has DeleteParams and AddParams but Params is not documented.

Hi Sai Ram,

thanks for pointing that out. We will update the documentation accordingly.

Thanks,
Kos @ Tyk Support Team