Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: arc-archive/socket-fetch
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.45
Choose a base ref
...
head repository: arc-archive/socket-fetch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: stage
Choose a head ref

Commits on Apr 28, 2016

  1. Copy the full SHA
    64c832d View commit details
  2. Copy the full SHA
    3bae469 View commit details

Commits on Apr 29, 2016

  1. Copy the full SHA
    abae5ee View commit details
  2. Copy the full SHA
    6a721b4 View commit details

Commits on May 4, 2016

  1. Copy the full SHA
    b9af466 View commit details

Commits on May 5, 2016

  1. Breaking: Added digest and NTLM authentication. It changes how the re…

    …quests are made. See code for more details
    jarrodek committed May 5, 2016
    Copy the full SHA
    04d0296 View commit details
  2. Fixes #11

    jarrodek committed May 5, 2016
    Copy the full SHA
    447d7b2 View commit details
  3. Merge branch 'auth'

    jarrodek committed May 5, 2016
    Copy the full SHA
    c461b2b View commit details
  4. Copy the full SHA
    54636d3 View commit details
  5. Copy the full SHA
    0dd8032 View commit details
  6. Copy the full SHA
    caa270c View commit details
  7. Copy the full SHA
    53221c9 View commit details
  8. Copy the full SHA
    914ab32 View commit details
  9. Copy the full SHA
    2aaf16e View commit details
  10. Copy the full SHA
    06a79b6 View commit details
  11. Copy the full SHA
    12b85a2 View commit details
  12. Copy the full SHA
    4a5d212 View commit details
  13. Copy the full SHA
    f93e5c6 View commit details

Commits on May 6, 2016

  1. Copy the full SHA
    c39bf17 View commit details
  2. Copy the full SHA
    d785c94 View commit details
  3. Copy the full SHA
    7860dad View commit details
  4. Copy the full SHA
    d5ada79 View commit details
  5. Copy the full SHA
    69e32b6 View commit details
  6. Copy the full SHA
    d986901 View commit details
  7. Copy the full SHA
    f53d790 View commit details

Commits on May 7, 2016

  1. Tested NTLM authentication

    jarrodek committed May 7, 2016
    Copy the full SHA
    35511ad View commit details

Commits on May 10, 2016

  1. Copy the full SHA
    e6c9ca9 View commit details
  2. Copy the full SHA
    d89b306 View commit details
  3. Merge branch 'ab'

    jarrodek committed May 10, 2016
    Copy the full SHA
    9809e51 View commit details
  4. Copy the full SHA
    496b258 View commit details

Commits on Jun 15, 2016

  1. Fix: Fixed all redirection issues. The library will now follow spec w…

    …hen handling redirection (fixes #13)
    jarrodek committed Jun 15, 2016
    Copy the full SHA
    232a567 View commit details
  2. Copy the full SHA
    e28b3c3 View commit details
  3. Copy the full SHA
    6e0f7c9 View commit details

Commits on Jul 19, 2016

  1. Copy the full SHA
    1399908 View commit details
  2. Copy the full SHA
    38ee4e1 View commit details
  3. Fix: Fixes a bug where expired cookies were not cleared from the orig…

    …inal request, after the request was redirect
    jarrodek committed Jul 19, 2016
    Copy the full SHA
    78503ca View commit details
  4. Copy the full SHA
    98a00ba View commit details

Commits on Aug 22, 2016

  1. Copy the full SHA
    323d86e View commit details
  2. Copy the full SHA
    f60da25 View commit details
  3. Copy the full SHA
    53e610f View commit details

Commits on Aug 25, 2016

  1. Copy the full SHA
    b3b39ec View commit details
  2. Copy the full SHA
    0095744 View commit details

Commits on Sep 11, 2016

  1. Update: Updated docs

    jarrodek committed Sep 11, 2016
    Copy the full SHA
    4c8bad2 View commit details

Commits on Sep 29, 2016

  1. Copy the full SHA
    0834116 View commit details
  2. Copy the full SHA
    7ab6fbd View commit details

Commits on Oct 7, 2016

  1. Removed element's body

    jarrodek committed Oct 7, 2016
    Copy the full SHA
    718804a View commit details
  2. Added dependencyci.yml file

    jarrodek committed Oct 7, 2016
    Copy the full SHA
    fb37eca View commit details
  3. Copy the full SHA
    0a48122 View commit details
  4. Copy the full SHA
    ce8087a View commit details
  5. Copy the full SHA
    c0624a1 View commit details
Showing with 2,110 additions and 306 deletions.
  1. +4 −1 .jshintrc
  2. +310 −0 CHANGELOG.md
  3. +10 −9 README.md
  4. +500 −72 app.fetch.js
  5. +0 −50 app.formdata.js
  6. +32 −7 app.request.js
  7. +20 −8 app.response.js
  8. +21 −0 auth.basic.js
  9. +68 −0 auth.digest.js
  10. +27 −0 auth.js
  11. +635 −0 auth.ntlm.js
  12. +7 −7 bower.json
  13. +141 −136 demo/index.html
  14. +4 −0 dependencyci.yml
  15. +11 −0 index.html
  16. +5 −1 package.json
  17. +143 −2 socket-fetch.html
  18. +42 −0 tasks/ci.js
  19. +59 −0 tasks/test-srv.js
  20. +10 −10 test/basic-test.html
  21. +53 −3 test/index.html
  22. +8 −0 wct.conf.json
5 changes: 4 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
@@ -18,6 +18,9 @@
"chrome": true,
"URLSearchParams": true,
"URI": true,
"Cookies": true
"Cookies": true,
"FetchDigestAuth": true,
"FetchNtlmAuth": true,
"FetchBasicAuth": true
}
}
310 changes: 310 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,313 @@
<a name="1.0.76"></a>
## [1.0.76](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.75...v1.0.76) (2017-01-20)




<a name="1.0.75"></a>
## [1.0.75](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.74...v1.0.75) (2016-11-22)


### Fix

* Fixed error thrown when redirect is relative ([8d3f6287b1f97660a5cb974505e83c61278f24dd](https://github.com/advanced-rest-client/socket-fetch/commit/8d3f6287b1f97660a5cb974505e83c61278f24dd))



<a name="1.0.74"></a>
## [1.0.74](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.73...v1.0.74) (2016-11-22)


### Fix

* Fixed cookie parser dependency by adding import ([013831813779a3cd3dfc1821a68f5958eddd7756](https://github.com/advanced-rest-client/socket-fetch/commit/013831813779a3cd3dfc1821a68f5958eddd7756))



<a name="1.0.73"></a>
## [1.0.73](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.72...v1.0.73) (2016-11-22)


### Fix

* Fixed an issue with missing new keyword when using URL class ([f2c8fbc614be00b1641337860941323cb0e432d9](https://github.com/advanced-rest-client/socket-fetch/commit/f2c8fbc614be00b1641337860941323cb0e432d9))



<a name="1.0.72"></a>
## [1.0.72](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.69...v1.0.72) (2016-11-22)


### Update

* Removed reference to the URI library and replaced it with native URL ([871fec0a7b4fba331f3184ad4954af213730c11a](https://github.com/advanced-rest-client/socket-fetch/commit/871fec0a7b4fba331f3184ad4954af213730c11a))



<a name="1.0.71"></a>
## [1.0.71](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.69...v1.0.71) (2016-11-21)


### Update

* Removed reference to the URI library and replaced it with native URL ([871fec0a7b4fba331f3184ad4954af213730c11a](https://github.com/advanced-rest-client/socket-fetch/commit/871fec0a7b4fba331f3184ad4954af213730c11a))



<a name="1.0.70"></a>
## [1.0.70](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.69...v1.0.70) (2016-11-21)


### Update

* Removed reference to the URI library and replaced it with native URL ([871fec0a7b4fba331f3184ad4954af213730c11a](https://github.com/advanced-rest-client/socket-fetch/commit/871fec0a7b4fba331f3184ad4954af213730c11a))



<a name="1.0.69"></a>
## [1.0.69](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.66...v1.0.69) (2016-11-10)


### Fix

* Fixed issue #15 - upodated parsers to adjust number of consumed characters to the real value of new lines ([331261edbc9afb636d13bc8b67d6338c688362eb](https://github.com/advanced-rest-client/socket-fetch/commit/331261edbc9afb636d13bc8b67d6338c688362eb)), closes [#15](https://github.com/advanced-rest-client/socket-fetch/issues/15)
* Fixed issue #16 - Now calling error will call promise's reject function ([e32f948a77534523258e7038f57a430ae1f89f26](https://github.com/advanced-rest-client/socket-fetch/commit/e32f948a77534523258e7038f57a430ae1f89f26)), closes [#16](https://github.com/advanced-rest-client/socket-fetch/issues/16)
* Fixed variable name for socet sent info ([ee3248349bad1d0cd6de729fd0d13992474c5b55](https://github.com/advanced-rest-client/socket-fetch/commit/ee3248349bad1d0cd6de729fd0d13992474c5b55))
* Fixes #15 and #17 - new line as "10" ASCII only and status message error ([8f4652ef0214ba411718a182b02c037b3ae4ad54](https://github.com/advanced-rest-client/socket-fetch/commit/8f4652ef0214ba411718a182b02c037b3ae4ad54)), closes [#15](https://github.com/advanced-rest-client/socket-fetch/issues/15) [#17](https://github.com/advanced-rest-client/socket-fetch/issues/17)

### Update

* Fixed error that hasn't been supported earlier. ([4267425932e508d3727afb73d07017b22a63ab7d](https://github.com/advanced-rest-client/socket-fetch/commit/4267425932e508d3727afb73d07017b22a63ab7d))



<a name="1.0.68"></a>
## [1.0.68](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.66...v1.0.68) (2016-10-20)


### Fix

* Fixed variable name for socet sent info ([ee3248349bad1d0cd6de729fd0d13992474c5b55](https://github.com/advanced-rest-client/socket-fetch/commit/ee3248349bad1d0cd6de729fd0d13992474c5b55))



<a name="1.0.67"></a>
## [1.0.67](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.66...v1.0.67) (2016-10-20)




<a name="1.0.66"></a>
## [1.0.66](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.65...v1.0.66) (2016-10-12)


### Fix

* Fixes 14 - passing headers and payload after NTLM authentication ([158ec4f63aba892ef547edd8d9c61bff8c8b11cb](https://github.com/advanced-rest-client/socket-fetch/commit/158ec4f63aba892ef547edd8d9c61bff8c8b11cb))



<a name="1.0.65"></a>
## [1.0.65](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.64...v1.0.65) (2016-10-07)


### New

* Added log messages to the response object ([0a481222a8ede7fee3c25d0a7d8ca4187ad6f038](https://github.com/advanced-rest-client/socket-fetch/commit/0a481222a8ede7fee3c25d0a7d8ca4187ad6f038))



<a name="1.0.64"></a>
## [1.0.64](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.63...v1.0.64) (2016-09-29)


### Update

* Updated docs ([4c8bad22a0db8efb51f26b7017c80d5e5b99546f](https://github.com/advanced-rest-client/socket-fetch/commit/4c8bad22a0db8efb51f26b7017c80d5e5b99546f))



<a name="1.0.63"></a>
## [1.0.63](https://github.com/advanced-rest-client/socket-fetch/compare/1.0.62...v1.0.63) (2016-08-25)




<a name="1.0.62"></a>
## [1.0.62](https://github.com/jarrodek/socket-fetch/compare/1.0.61...v1.0.62) (2016-08-22)




<a name="1.0.61"></a>
## [1.0.61](https://github.com/jarrodek/socket-fetch/compare/1.0.60...v1.0.61) (2016-07-19)


### Fix

* Fixes a bug where expired cookies were not cleared from the original request, after the request was redirect ([78503ca21de48dd31bcad638d52ef478b784a8a5](https://github.com/jarrodek/socket-fetch/commit/78503ca21de48dd31bcad638d52ef478b784a8a5))



<a name="1.0.60"></a>
## [1.0.60](https://github.com/jarrodek/socket-fetch/compare/1.0.59...v1.0.60) (2016-07-19)




<a name="1.0.59"></a>
## [1.0.59](https://github.com/jarrodek/socket-fetch/compare/1.0.58...v1.0.59) (2016-06-15)


### Fix

* Fixed all redirection issues. The library will now follow spec when handling redirection ([232a5677087394250d128b0bb5ca7ce15ea6bfd4](https://github.com/jarrodek/socket-fetch/commit/232a5677087394250d128b0bb5ca7ce15ea6bfd4)), closes [#13](https://github.com/jarrodek/socket-fetch/issues/13)



<a name="1.0.58"></a>
## [1.0.58](https://github.com/jarrodek/socket-fetch/compare/1.0.57...v1.0.58) (2016-05-10)




<a name="1.0.57"></a>
## [1.0.57](https://github.com/jarrodek/socket-fetch/compare/1.0.56...v1.0.57) (2016-05-10)


### Fix

* Changed string conversion to array buffer and back to support URF-16 strings ([e6c9ca9a4c97af090205504636b5cf0a96805dda](https://github.com/jarrodek/socket-fetch/commit/e6c9ca9a4c97af090205504636b5cf0a96805dda)), closes [#12](https://github.com/jarrodek/socket-fetch/issues/12)



<a name="1.0.56"></a>
## [1.0.56](https://github.com/jarrodek/socket-fetch/compare/1.0.55...v1.0.56) (2016-05-06)


### Fix

* Refactoring to avoid name collisions ([d9869017fa0c179c5055c277029229d7400c037c](https://github.com/jarrodek/socket-fetch/commit/d9869017fa0c179c5055c277029229d7400c037c))



<a name="1.0.55"></a>
## [1.0.55](https://github.com/jarrodek/socket-fetch/compare/1.0.54...v1.0.55) (2016-05-06)


### Fix

* fixes and auth object when setting up basic auth object from URL params ([d5ada7928e8ed94258811911dffa859d011fd3a2](https://github.com/jarrodek/socket-fetch/commit/d5ada7928e8ed94258811911dffa859d011fd3a2))



<a name="1.0.54"></a>
## [1.0.54](https://github.com/jarrodek/socket-fetch/compare/1.0.53...v1.0.54) (2016-05-06)




<a name="1.0.53"></a>
## [1.0.53](https://github.com/jarrodek/socket-fetch/compare/1.0.39...v1.0.53) (2016-05-06)


### Breaking

* Added digest and NTLM authentication. It changes how the requests are made. See code for more details ([04d0296a88deb56c7eb122e0e212371dd7879a0f](https://github.com/jarrodek/socket-fetch/commit/04d0296a88deb56c7eb122e0e212371dd7879a0f))

### Docs

* added source info for DigestAuth class ([f93e5c65401c7f87511ac70574d4b103c6062cde](https://github.com/jarrodek/socket-fetch/commit/f93e5c65401c7f87511ac70574d4b103c6062cde))

### Fix

* Fixed issues with wrong conditions ([abae5ee6b4e34a10a9c77aae455ca1e50bf4d993](https://github.com/jarrodek/socket-fetch/commit/abae5ee6b4e34a10a9c77aae455ca1e50bf4d993))
* Fixes this._request.headers.set usage ([12b85a20a0b9a99347354eb313604377bb492b9e](https://github.com/jarrodek/socket-fetch/commit/12b85a20a0b9a99347354eb313604377bb492b9e))
* Fixes URLs with username and passwords ([c39bf177b96ed0017e12f8ab65b54899815cfee3](https://github.com/jarrodek/socket-fetch/commit/c39bf177b96ed0017e12f8ab65b54899815cfee3))
* issues with auth response status ([53221c92c68de5b9daf802d272a72b0ab4861ef7](https://github.com/jarrodek/socket-fetch/commit/53221c92c68de5b9daf802d272a72b0ab4861ef7))
* issues with digest authentication ([0dd8032a2f1b0659bef11e703a4f4f3b35469436](https://github.com/jarrodek/socket-fetch/commit/0dd8032a2f1b0659bef11e703a4f4f3b35469436))
* Name colision ([2aaf16e6770df6e089562f51ae3e685f2c560b44](https://github.com/jarrodek/socket-fetch/commit/2aaf16e6770df6e089562f51ae3e685f2c560b44))

### Update

* added property to all reported responses ([64c832db12a3ca9634ba542901fd9f277d1712f7](https://github.com/jarrodek/socket-fetch/commit/64c832db12a3ca9634ba542901fd9f277d1712f7))
* added property to all reported responses ([38452b90cebdee3fafef35d8250d869ecb58678c](https://github.com/jarrodek/socket-fetch/commit/38452b90cebdee3fafef35d8250d869ecb58678c))
* Added cookie behavior during redirection. Cookies are now included into redirect server if match domain and path ([1e4b7040cc2a140eb30c4875acfd5b000220392f](https://github.com/jarrodek/socket-fetch/commit/1e4b7040cc2a140eb30c4875acfd5b000220392f))
* Added requestUrl for the response that has been redirected. ([86c08d9d97260bb27fb3c0905e614558da90bd60](https://github.com/jarrodek/socket-fetch/commit/86c08d9d97260bb27fb3c0905e614558da90bd60))
* When redirects are available, the library will not throw error anymore, instead it returns errored response object with the redirect information. ([35cd88cbc35d4c9876c995c8470675bd8c5a338a](https://github.com/jarrodek/socket-fetch/commit/35cd88cbc35d4c9876c995c8470675bd8c5a338a))



<a name="1.0.52"></a>
## [1.0.52](https://github.com/jarrodek/socket-fetch/compare/1.0.51...v1.0.52) (2016-05-05)


### Fix

* Fixes this._request.headers.set usage ([12b85a20a0b9a99347354eb313604377bb492b9e](https://github.com/jarrodek/socket-fetch/commit/12b85a20a0b9a99347354eb313604377bb492b9e))



<a name="1.0.51"></a>
## [1.0.51](https://github.com/jarrodek/socket-fetch/compare/1.0.50...v1.0.51) (2016-05-05)


### Fix

* Name colision ([2aaf16e6770df6e089562f51ae3e685f2c560b44](https://github.com/jarrodek/socket-fetch/commit/2aaf16e6770df6e089562f51ae3e685f2c560b44))



<a name="1.0.50"></a>
## [1.0.50](https://github.com/jarrodek/socket-fetch/compare/1.0.49...v1.0.50) (2016-05-05)


### Fix

* issues with auth response status ([53221c92c68de5b9daf802d272a72b0ab4861ef7](https://github.com/jarrodek/socket-fetch/commit/53221c92c68de5b9daf802d272a72b0ab4861ef7))



<a name="1.0.49"></a>
## [1.0.49](https://github.com/jarrodek/socket-fetch/compare/1.0.48...v1.0.49) (2016-05-05)


### Fix

* issues with digest authentication ([0dd8032a2f1b0659bef11e703a4f4f3b35469436](https://github.com/jarrodek/socket-fetch/commit/0dd8032a2f1b0659bef11e703a4f4f3b35469436))



<a name="1.0.48"></a>
## [1.0.48](https://github.com/jarrodek/socket-fetch/compare/1.0.47...v1.0.48) (2016-05-05)


### Breaking

* Added digest and NTLM authentication. It changes how the requests are made. See code for more details ([04d0296a88deb56c7eb122e0e212371dd7879a0f](https://github.com/jarrodek/socket-fetch/commit/04d0296a88deb56c7eb122e0e212371dd7879a0f))



<a name="1.0.47"></a>
## [1.0.47](https://github.com/jarrodek/socket-fetch/compare/1.0.46...v1.0.47) (2016-04-29)


### Fix

* Fixed issues with wrong conditions ([abae5ee6b4e34a10a9c77aae455ca1e50bf4d993](https://github.com/jarrodek/socket-fetch/commit/abae5ee6b4e34a10a9c77aae455ca1e50bf4d993))



<a name="1.0.46"></a>
## [1.0.46](https://github.com/jarrodek/socket-fetch/compare/1.0.45...v1.0.46) (2016-04-28)


### Update

* added property to all reported responses ([64c832db12a3ca9634ba542901fd9f277d1712f7](https://github.com/jarrodek/socket-fetch/commit/64c832db12a3ca9634ba542901fd9f277d1712f7))



<a name="1.0.45"></a>
## [1.0.45](https://github.com/jarrodek/socket-fetch/compare/1.0.44...v1.0.45) (2016-04-28)

19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@

# Socket fetch

The HTTP client transport based on [chrome.sockets.tcp] API.

## Getting started
Bower the library
```
bower install socket-fetch
bower install --save advanced-rest-client/socket-fetch
```
And import it into your project using web components.
```html
<link rel="import" href="bower-components/socket-fetch/socket-fetch.html">
```
Now you can use following classes:
* ArcEventTarget
* ArcEventSource
* ArcRequest
* ArcResponse
* SocketFetch
* HttpParser
ArcEventTarget
ArcEventSource
ArcRequest
ArcResponse
SocketFetch
HttpParser

The Arc prefix comes from [Advanced Rest Client] project.

@@ -100,8 +101,8 @@ Second argument may have following options:
Regular Response object will not contain all headers in the response. ArcResponse class however will return all received headers from the server - even the prohibited ones. Other properties and methods are inherited from the Response object.

Additionally the ArcResponse will contain two custom fields:
* redirects {Set<ArcResponse>} - A list of responses that lead to redirection
* stats {Set<Object>} - Some stats about the request and response. It is the same as `timings` object in HAR 1.2 specification.
redirects {Set<ArcResponse>} - A list of responses that lead to redirection
stats {Set<Object>} - Some stats about the request and response. It is the same as `timings` object in HAR 1.2 specification.

## Import scripts (web workers)
This library uses web workers. Sometimes it is necessary to change import path of the library.
Loading