unxhr

WebJar for unxhr

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

unxhr
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

unxhr
WebJar for unxhr
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/mogztter/unxhr

Скачать unxhr

Имя Файла Размер
unxhr-1.0.1.pom
unxhr-1.0.1.jar 10 KB
unxhr-1.0.1-sources.jar 22 bytes
unxhr-1.0.1-javadoc.jar 22 bytes
Обзор

Как подключить последнюю версию

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Synchronous and asynchronous XMLHttpRequest for Node

Build install size npm version

unxhr is a tiny wrapper of the built-in http client to emulate the browser XMLHttpRequest object.

Important: This library is a fork of XMLHttpRequest. It was created to be compliant with XMLHttpRequest Level 2.

Highlights

  • Dependency free
  • Asynchronous and synchronous requests
  • GET, POST, PUT, and DELETE requests
  • Binary data using JavaScript typed arrays
  • Follows redirects
  • Handles file:// protocol

Usage

Here's how to include the module in your project and use as the browser-based XHR object.

const XMLHttpRequest = require('unxhr').XMLHttpRequest
const xhr = new XMLHttpRequest()

Known Issues / Missing Features

For a list of open issues or to report your own visit the github issues page.

  • Local file access may have unexpected results for non-UTF8 files
  • Synchronous requests don't set headers properly
  • Synchronous requests freeze node while waiting for response (But that's what you want, right? Stick with async!).
  • Some events are missing, such as abort
  • Cookies aren't persisted between requests
  • Missing XML support

License

MIT license. See LICENSE for full details.

Версии библиотеки

Версия
1.0.1