Skip to content
This repository was archived by the owner on Jun 7, 2019. It is now read-only.

Commit d613afe

Browse files
committed
Removed old IE XDomainRequest client and xhr and xdr interceptors
Old IE is no longer supported or tested. Removing code dedicated to old IE that is not interesting to any other environment. The client and interceptors will still work, if needed, they can be copied directly into a project.
1 parent 7709358 commit d613afe

File tree

10 files changed

+7
-565
lines changed

10 files changed

+7
-565
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ Change Log
248248
- IE 11
249249
- iOS 8 and 9
250250
- Safari 8 and 9
251+
- Removed old IE XDomainRequest client and xhr and xdr interceptors
251252
- include requested URL on response object
252253
- mime interceptor no longer sets Content-Type on requests without an entity
253254

client/xdr.js

Lines changed: 0 additions & 72 deletions
This file was deleted.

docs/clients.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
- [XMLHttpReqest Client](#module-rest/client/xhr)
66
- [Node Client](#module-rest/client/node)
77
- [JSONP Client](#module-rest/client/jsonp)
8-
- [IE XDomainRequest Client](#module-rest/client/xdr)
98

109

1110
## Overview
@@ -44,7 +43,7 @@ While it may be tempting to change the default client for application level conc
4443

4544
`rest/client/xhr` ([src](../client/xhr.js))
4645

47-
The default client for browsers. The XHR client utilizes the XMLHttpRequest object provided by many browsers. Most every browser has direct support for XHR today. The `rest/interceptor/ie/xhr` interceptor can provided fall back support for older IE without native XHR.
46+
The default client for browsers. The XHR client utilizes the XMLHttpRequest object provided by many browsers.
4847

4948
**Special Properties**
5049

@@ -136,20 +135,3 @@ JSONP client for browsers. Allows basic cross-origin GETs via script tags. Thi
136135
<td>pins the name of the callback function, useful for cases where the server doesn't allow custom callback names. Generally not recommended.</td>
137136
</tr>
138137
</table>
139-
140-
141-
<a name="module-rest/client/xdr"></a>
142-
### IE XDomainRequest Client
143-
144-
`rest/client/xdr` ([src](../client/xdr.js))
145-
146-
Cross-origin support available within IE, in particular IE 8 and 9. This client is typically employed via the `rest/interceptor/ie/xdomain` interceptor. Never used as the default client.
147-
148-
**Know limitations**
149-
150-
- only GET and POST methods are available
151-
- must use same scheme as origin http-to-http, https-to-https
152-
- no headers, request or response (the response Content-Type is available)
153-
- no response status code
154-
155-
[Limitation details](http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx)

docs/interceptors.md

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
- [Timeout Interceptor](#module-rest/interceptor/timeout)
2121
- [Fallback Interceptors](#interceptor-provided-fallback)
2222
- [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)
2523
- [Custom Interceptors](#interceptor-custom)
2624
- [Interceptor Best Practices](#interceptor-custom-practices)
2725
- [Example Interceptors by Concept](#interceptor-custom-concepts)
@@ -34,7 +32,6 @@
3432
- [Cancellation](#interceptor-custom-concepts-cancellation)
3533
- [Shared Request/Response Context](#interceptor-custom-concepts-context)
3634
- [Async Request/Response](#interceptor-custom-concepts-async)
37-
- [Override Parent Client (ComplexRequest)](#interceptor-custom-concepts-parent)
3835
- [Abort Request (ComplexRequest)](#interceptor-custom-concepts-abort)
3936

4037

@@ -931,58 +928,6 @@ client({ path: 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0', para
931928
```
932929

933930

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-
986931
<a name="interceptor-custom"></a>
987932
## Custom Interceptors
988933

@@ -1198,11 +1143,6 @@ The interceptors provided with rest.js provide are also good examples. Here are
11981143

11991144
- [rest/interceptor/mime](#module-rest/interceptor/mime)
12001145

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-
12061146
<a name="interceptor-custom-concepts-abort"></a>
12071147
**Abort Request (ComplexRequest)**
12081148

interceptor/ie/xdomain.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

interceptor/ie/xhr.js

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)