Giter Club home page Giter Club logo

httpx's Introduction

Hi there 👋

Here are some ideas to get you started:

httpx's People

Contributors

dependabot[bot] avatar jacksontian avatar nodejh avatar peze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

httpx's Issues

使用报错:TypeError: Cannot create property 'startTime' on number '3'

Hi, JacksonTian:

我在使用阿里云 @alicloud/pop-core 包时遇到以下报错信息,错误来源您的 npm 包 httpx:

TypeError: Cannot create property 'startTime' on number '3'

      at startResponseTimer (node_modules/httpx/lib/index.js:119:23)
      at TLSSocket.<anonymous> (node_modules/httpx/lib/index.js:153:11)

此错误来源您的代码第 119 行,您在此试图向一个数字类型 timer 设置属性,这种行为在严格模式下是被禁止的,我已修复此 Bug 并提交 PR,请接收,谢谢。

proxy

For anyone who wonders how to use https with a proxy, you can do it through proxy-agent:

const proxy = require('proxy-agent');
const httpx = require('httpx');

httpx.request('http://www.baidu.com/', {agent: new ProxyAgent("https://yourproxy:123")}).then((response) => {
  response.pipe(process.stdout);

  response.on('end', () => {
    process.stdout.write('\n');
  });
}, (err) => {
  // on error
});

npm 版本不一致

同样是 v1.0.0 版本,但 github 上的代码和 npm 上的不一致,npm 还以一年前的版本,不支持 timeout,希望更新 npm。😭😭😭😭

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.