restangular icon indicating copy to clipboard operation
restangular copied to clipboard

Should be able to overwrite url in `addFullRequestInterceptor`

Open hekike opened this issue 10 years ago • 6 comments

headers: The headers to send
params: The request parameters to send
element: The element to send
httpConfig: The httpConfig to call with

Why url is missing? It would be nice to have it.

hekike avatar Mar 12 '15 10:03 hekike

+1

fbarbat avatar Jun 25 '15 13:06 fbarbat

Yes I agree. Does anyone have an answer? Thanks for the help!

derrickmar avatar Jun 27 '15 18:06 derrickmar

I haven't tried it but maybe it can be implemented using $http interceptors. It's not great to intercept all requests (including Angular's) though. In my case, I ended up refactoring my server side URLs to use params instead.

fbarbat avatar Jun 27 '15 19:06 fbarbat

+1

jamespsterling avatar Sep 24 '15 13:09 jamespsterling

Anything new about this? Because I can't modify the url with addFullRequestInterceptor I'm using $httpProvider.interceptors instead 😞

yaring avatar Jun 07 '16 12:06 yaring

As has already been stated, this isn't currently supported. If you'd like to add support, please feel free to submit a PR, however, due to the high volume of issues and PRs, I have no guarantee that it will be merged in soon 😢

daviesgeek avatar Jun 16 '16 23:06 daviesgeek