Retrieve Full URL in middleware


#1

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.


#2

Hi dmtroll,

we considered your recommendation and took note of it.

It will be included in our next release.

Thanks,

Kos @ Tyk Support Team


#3

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.


#4

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


#5

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


#6

Hi Sai Ram,

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

Thanks,
Kos @ Tyk Support Team