reqrio 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -52,7 +52,7 @@
52
52
  const {Session, ALPN} = require("reqrio")
53
53
 
54
54
  let session = new Session(ALPN.HTTP11)
55
- session.set_header_json({
55
+ session.set_headers({
56
56
  "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
57
57
  "Accept-Encoding": "gzip, deflate, br, zstd",
58
58
  "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
package/index.js CHANGED
@@ -8,5 +8,5 @@ module.exports = {
8
8
  ALPN,
9
9
  Websocket
10
10
  }
11
- //nm loginp
11
+ //npm login
12
12
  //npm publish
package/libreqrio.so CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reqrio",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "A lightweight, high concurrency HTTP request library",
5
5
  "main": "index.js",
6
6
  "keywords": [
package/reqrio.dll CHANGED
Binary file
package/session.js CHANGED
@@ -47,7 +47,7 @@ class Session {
47
47
 
48
48
  }
49
49
 
50
- set_header_json(header) {
50
+ set_headers(header) {
51
51
  let header_str = JSON.stringify(header);
52
52
  let ret = library.ScReq_set_header_json(this.req, header_str)
53
53
  if (ret === -1) throw "set_header_json error"