Skip to content

Latest commit

 

History

History
83 lines (49 loc) · 2.26 KB

CHANGELOG.md

File metadata and controls

83 lines (49 loc) · 2.26 KB

htp

Notable changes to this project will be documented in this file. This project adheres to Semantic Versioning 2.0.0.

[0.4.2] - Jan 2, 2017

  • On piping mode, pass address object to listener of event dns.

[0.4.1] - Jan 2, 2017

Fixed

  • Fixed the bug that, on piping mode, event dns is missed if hostname has been resolved and cached before.
  • Fixed the bug that, on piping mode, event error is missed.

[0.4.0] - Dec 13, 2017

  • dns-agent is depended while htp is resolving domain names.

[0.3.0] - Dec 8, 2017

  • Setting rejectUnauthorized added.

[0.2.0]

New

  • Byeond basic and piping mode, new pipingOnly mode is offered.
  • Returned stream in piping mode will emit events and may be catched via on(<eventName>, ...) method.
  • README in Simplifed Chinese language.

Fixed

  • In previous version, htp/SimpleAgent will invoke callback() (if passed) twice if there is some exception throwed in callback() itself.

What is difference between piping and pipingOnly ?

In piping mode, you may get data via piping to a writable stream, or reading response.body and response.bodyBuffer directly in function callback(err, response) which is passed as the last argument.

[0.1.1] - Nov 23, 2017

Fixed

  • In previous versions, htp cannot recognized some key fields in response headers if their names are not lowercased.

[0.1.0] - 2017-11-12

Milestone

Now, htp is streamable. E.g.

htp.piping.get('http://www.example.com/').pipe(fs.createWriteStream('index.html'));

[0.0.5] - 2017-11

htp/sSimpleAgent added.

[0.0.4] - 2017-10

Add new action property to Errors throwed. Value of the property is made up of the method name and the url joined with a whitespace, e.g.

htp.get('http://www.example.com/', function(err, response) {
	if (err) {
		err.action == 'GET http://www.example.com/'; // true
	}
});

[0.0.3] - 2017-09

No promise created or returned when callback() functions offered.

[0.0.2] - 2017-07, https

HTTPS requests are supported.

[0.0.1] - 2017-07

Released.


This CHANGELOG.md follows Keep a CHANGELOG.