xhr2-cookies

WebJar for xhr2-cookies

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

xhr2-cookies
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

xhr2-cookies
WebJar for xhr2-cookies
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/souldreamer/xhr2-cookies

Download xhr2-cookies

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/xhr2-cookies/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>xhr2-cookies</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/xhr2-cookies/
implementation 'org.webjars.npm:xhr2-cookies:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/xhr2-cookies/
implementation ("org.webjars.npm:xhr2-cookies:1.1.0")
'org.webjars.npm:xhr2-cookies:jar:1.1.0'
<dependency org="org.webjars.npm" name="xhr2-cookies" rev="1.1.0">
  <artifact name="xhr2-cookies" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='xhr2-cookies', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "xhr2-cookies" % "1.1.0"
[org.webjars.npm/xhr2-cookies "1.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : cookiejar jar [2.1.1,3)

Project Modules

There are no modules declared in this project.

XMLHttpRequest polyfill for node.js

Based on https://github.com/pwnall/node-xhr2

  • Adds support for cookies
  • Adds in-project TypeScript type definitions
  • Switched to TypeScript

Cookies

  • saved in XMLHttpRequest.cookieJar
  • saved between redirects
  • saved between requests
  • can be cleared by doing:
import * as Cookie from 'cookiejar';
XMLHttpRequest.cookieJar = Cookie.CookieJar();

Aims

  • Provide full XMLHttpRequest features to Angular Universal HttpClient & node-angular-http-client

Changelog

1.1.0

  • added saving of cookies between requests, not just redirects
  • bug fixes
  • most tests from xhr2 ported over and passing

Versions

Version
1.1.0