awesome-repositories.com
Blog
MCP
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
request avatar

request/request-promise

0
View on GitHub↗
4,722 stars·286 forks·JavaScript·ISC·4 vues

Request Promise

Ce projet est un client HTTP basé sur les promesses pour Node.js qui enveloppe les requêtes réseau de style callback en objets promesse. Il sert de bibliothèque pour envoyer des JSON, des données de formulaire et des requêtes multipart vers des serveurs web tout en gérant le contrôle de flux asynchrone.

La bibliothèque utilise une implémentation de promesse Bluebird spécialisée pour gérer les cycles de vie des requêtes et des réponses. Elle inclut un gestionnaire de session qui utilise un cookie jar pour maintenir et transmettre l'état à travers plusieurs appels réseau.

L'outil couvre un large éventail de capacités réseau, incluant l'intégration d'API REST, la transformation de données de réponse et la capture complète de réponse HTTP. Il fournit des mécanismes pour l'annulation de requête, la gestion d'erreur configurable pour les codes de statut non-succès, et le débogage du trafic réseau.

Features

  • Promise-Based HTTP Clients - Wraps callback-style HTTP requests into promise objects to manage asynchronous network flow without nesting.
  • Asynchronous HTTP Calls - Enables making asynchronous HTTP requests using promises instead of traditional callbacks for simplified error and response handling.
  • REST API Integrations - Sending and receiving JSON data through HTTP requests to communicate with web services and external application interfaces.
  • HTTP Cookie Management - Manages session state across multiple network calls using a cookie jar to handle session cookies.
  • Request Body Encoders - Provides mechanisms to encode request bodies as JSON, URL-encoded forms, or multipart data for standard web transfers.
  • Node.js HTTP Clients - Serves as a comprehensive Node.js library for sending JSON, form data, and multipart requests to web servers.
  • Session & Cookie Handlers - Uses a cookie jar to store and send cookies across multiple requests to maintain session state.
  • Web Session Management - Maintains state across multiple network calls by storing and sending cookies using a cookie jar.
  • Callback-to-Promise Converters - Transforms standard Node.js error-first callbacks into promise resolve and reject states for consistent async handling.
  • Request Body Attachers - Transforms JavaScript objects into JSON or multipart form data strings before transmission over the network.
  • API Error Handling - Allows configuration to determine if the promise should reject based on HTTP status codes or only on network failures.
  • HTTP Response Processors - Captures full response objects and transforms raw body data into specific formats for application use.
  • Request Cancellations - Provides the ability to abort active network requests to stop associated processes from resolving or rejecting.
  • Configurable Promise Resolutions - Allows callers to decide whether non-success HTTP status codes trigger a promise rejection or a resolution.
  • Full Response Captures - Enables returning the complete HTTP response object, including status codes and headers, instead of only the response body.
  • API Response Transformations - Implements custom functions to transform raw response bodies into different formats before they are used by the application.

Historique des stars

Graphique de l'historique des stars pour request/request-promiseGraphique de l'historique des stars pour request/request-promise

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Request Promise

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Request Promise.
  • amitshekhariitbhu/fast-android-networkingAvatar de amitshekhariitbhu

    amitshekhariitbhu/Fast-Android-Networking

    5,906Voir sur GitHub↗

    🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀

    Java
    Voir sur GitHub↗5,906
  • bitinn/node-fetchAvatar de bitinn

    bitinn/node-fetch

    8,861Voir sur GitHub↗

    node-fetch is a lightweight HTTP client library that implements the browser-standard Fetch API for Node.js. It provides a promise-based interface for making asynchronous network requests to retrieve or send data from server-side environments. The project specializes in memory-efficient data handling by utilizing request and response streaming. This allows for the incremental processing of large network payloads through native system streams to prevent memory exhaustion. The library covers a broad range of networking capabilities, including the use of custom HTTP agents for DNS and SSL config

    JavaScript
    Voir sur GitHub↗8,861
  • mzabriskie/axiosAvatar de mzabriskie

    mzabriskie/axios

    109,096Voir sur GitHub↗

    Axios is a promise-based HTTP client used to make asynchronous network requests in both browser and Node.js environments. It functions as a multi-environment network adapter that abstracts the transport layer to ensure consistent behavior across different runtimes. The project distinguishes itself through a request lifecycle management system that allows for the cancellation of active requests, the setting of timeouts, and the monitoring of upload and download transfer progress. It includes a mechanism for intercepting network traffic, enabling the transformation of outgoing requests and inco

    JavaScript
    Voir sur GitHub↗109,096
  • elbywan/wretchAvatar de elbywan

    elbywan/wretch

    5,174Voir sur GitHub↗

    Wretch is a chainable HTTP client library and Fetch API wrapper designed to simplify network request configuration, response parsing, and error handling. It functions as a network request manager and middleware framework for managing the end-to-end lifecycle of HTTP calls. The project is distinguished by a fluent interface for request configuration and a modular extension system. It utilizes a programmable response resolver to automate parsing and a plugin-based architecture to add new capabilities to request and response objects. The library covers a broad range of operational capabilities,

    TypeScript
    Voir sur GitHub↗5,174
Voir les 30 alternatives à Request Promise→

Questions fréquentes

Que fait request/request-promise ?

Ce projet est un client HTTP basé sur les promesses pour Node.js qui enveloppe les requêtes réseau de style callback en objets promesse. Il sert de bibliothèque pour envoyer des JSON, des données de formulaire et des requêtes multipart vers des serveurs web tout en gérant le contrôle de flux asynchrone.

Quelles sont les fonctionnalités principales de request/request-promise ?

Les fonctionnalités principales de request/request-promise sont : Promise-Based HTTP Clients, Asynchronous HTTP Calls, REST API Integrations, HTTP Cookie Management, Request Body Encoders, Node.js HTTP Clients, Session & Cookie Handlers, Web Session Management.

Quelles sont les alternatives open-source à request/request-promise ?

Les alternatives open-source à request/request-promise incluent : amitshekhariitbhu/fast-android-networking — 🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀. bitinn/node-fetch — node-fetch is a lightweight HTTP client library that implements the browser-standard Fetch API for Node.js. It… mzabriskie/axios — Axios is a promise-based HTTP client used to make asynchronous network requests in both browser and Node.js… elbywan/wretch — Wretch is a chainable HTTP client library and Fetch API wrapper designed to simplify network request configuration,… kittinunf/fuel — Fuel is a Kotlin HTTP client library for Android and Kotlin applications that handles both synchronous and… rest-client/rest-client — This is a Ruby HTTP client designed for REST API integration, resource modeling, and automated network communication.…