|
20 | 20 | - [Timeout Interceptor](#module-rest/interceptor/timeout) |
21 | 21 | - [Fallback Interceptors](#interceptor-provided-fallback) |
22 | 22 | - [JSONP Interceptor](#module-rest/interceptor/jsonp) |
23 | | - - [Cross Domain Request for IE Interceptor](#module-rest/interceptor/ie/xdomain) |
24 | | - - [ActiveX XHR for IE Interceptor](#module-rest/interceptor/ie/xhr) |
25 | 23 | - [Custom Interceptors](#interceptor-custom) |
26 | 24 | - [Interceptor Best Practices](#interceptor-custom-practices) |
27 | 25 | - [Example Interceptors by Concept](#interceptor-custom-concepts) |
|
34 | 32 | - [Cancellation](#interceptor-custom-concepts-cancellation) |
35 | 33 | - [Shared Request/Response Context](#interceptor-custom-concepts-context) |
36 | 34 | - [Async Request/Response](#interceptor-custom-concepts-async) |
37 | | - - [Override Parent Client (ComplexRequest)](#interceptor-custom-concepts-parent) |
38 | 35 | - [Abort Request (ComplexRequest)](#interceptor-custom-concepts-abort) |
39 | 36 |
|
40 | 37 |
|
@@ -931,58 +928,6 @@ client({ path: 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0', para |
931 | 928 | ``` |
932 | 929 |
|
933 | 930 |
|
934 | | -<a name="module-rest/interceptor/ie/xdomain"></a> |
935 | | -#### Cross Domain Request for IE Interceptor |
936 | | - |
937 | | -`rest/interceptor/ie/xdomain` ([src](../interceptor/ie/xdomain.js)) |
938 | | - |
939 | | -Utilizes IE's XDomainRequest support via the [XDomainRequest client](clients.md#module-rest/client/xdr) for making cross origin requests if needed, available and a CORS enabled XMLHttpRequest is not available. XDR request have a number of limitations, see the [XDR client](clients.md#module-rest/client/xdr) for limitation details. Will not interfere if installed in other environments. |
940 | | - |
941 | | -This interceptor should be installed as close to the root of the interceptor chain as possible. When a XDomainRequest client is needed, the normal parent client will not be invoked. |
942 | | - |
943 | | -**Phases** |
944 | | - |
945 | | -- request |
946 | | - |
947 | | -**Configuration** |
948 | | - |
949 | | -*none* |
950 | | - |
951 | | -**Example** |
952 | | - |
953 | | -```javascript |
954 | | -client = rest.wrap(xdomain) |
955 | | - .wrap(defaultRequest, { params: { api_key: '95f41bfa4faa0f43bf7c24795eabbed4', format: 'rest' } }); |
956 | | -client({ params: { method: 'flickr.test.echo' } }).then(function (response) { |
957 | | - // response from flickr |
958 | | -}); |
959 | | -``` |
960 | | - |
961 | | - |
962 | | -<a name="module-rest/interceptor/ie/xhr"></a> |
963 | | -#### ActiveX XHR for IE Interceptor |
964 | | - |
965 | | -`rest/interceptor/ie/xhr` ([src](../interceptor/ie/xhr.js)) |
966 | | - |
967 | | -Attempts to use an ActiveX XHR replacement if a native XMLHttpRequest object is not available. Useful for IE < 9, which does not natively support XMLHttpRequest. Will not interfere if installed in other environments. |
968 | | - |
969 | | -**Phases** |
970 | | -- request |
971 | | - |
972 | | -**Configuration** |
973 | | - |
974 | | -*none* |
975 | | - |
976 | | -**Example** |
977 | | - |
978 | | -```javascript |
979 | | -client = rest.wrap(xhr); |
980 | | -client({}).then(function (response) { |
981 | | - // normal XHR response, even in IE without XHR |
982 | | -}); |
983 | | -``` |
984 | | - |
985 | | - |
986 | 931 | <a name="interceptor-custom"></a> |
987 | 932 | ## Custom Interceptors |
988 | 933 |
|
@@ -1198,11 +1143,6 @@ The interceptors provided with rest.js provide are also good examples. Here are |
1198 | 1143 |
|
1199 | 1144 | - [rest/interceptor/mime](#module-rest/interceptor/mime) |
1200 | 1145 |
|
1201 | | -<a name="interceptor-custom-concepts-parent"></a> |
1202 | | -**Override Parent Client (ComplexRequest)** |
1203 | | - |
1204 | | -- [rest/interceptor/ie/xdomain](#module-rest/interceptor/ie/xdomain) |
1205 | | - |
1206 | 1146 | <a name="interceptor-custom-concepts-abort"></a> |
1207 | 1147 | **Abort Request (ComplexRequest)** |
1208 | 1148 |
|
|
0 commit comments