timed-out

WebJar for timed-out

Лицензия

Лицензия

MIT
Группа

Группа

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

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

timed-out
Последняя версия

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

4.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

timed-out
WebJar for timed-out
Ссылка на сайт

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

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

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

https://github.com/floatdrop/timed-out

Скачать timed-out

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

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

Зависимости

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

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

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

timed-out

Timeout HTTP/HTTPS requests

Emits Error object with code property equal ETIMEDOUT or ESOCKETTIMEDOUT when ClientRequest is hanged.

Usage

const http = require('http');
const timedOut = require('timed-out');

const request = http.get('http://www.google.ru');
timedOut(request, 2000); // Sets a 2 seconds limit

API

timedout(request, time)

request

Required Type: ClientRequest

The request to watch.

time

Required Type: number | object

Time in milliseconds to wait for a connect event on the socket and also time to wait on inactive socket.

Or you can pass an object with the following fields:

  • connect - Time to wait for a connection.
  • socket - Time to wait for activity on the socket.

timed-out for enterprise

Available as part of the Tidelift Subscription.

The maintainers of timed-out and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

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

Версия
4.0.1