{"name":"popsicle-transport-http","version":"1.1.4","publishConfig":{"access":"public"},"description":"Popsicle transport for sending requests over HTTP1 and HTTP2","license":"MIT","repository":{"type":"git","url":"git://github.com/serviejs/popsicle-transport-http.git"},"author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"homepage":"https://github.com/serviejs/popsicle-transport-http","bugs":{"url":"https://github.com/serviejs/popsicle-transport-http/issues"},"main":"dist/index.js","scripts":{"format":"ts-scripts format","lint":"ts-scripts lint","prepare":"ts-scripts install && ts-scripts build","specs":"ts-scripts specs -f","test":"ts-scripts test -f"},"keywords":["popsicle","transport","http","http2","response"],"peerDependencies":{"servie":"^4.2.0"},"dependencies":{"make-error-cause":"^2.2.0"},"devDependencies":{"@borderless/ts-scripts":"^0.2.1","@types/jest":"^26.0.0","@types/node":"^14.0.13","servie":"^4.3.3","throwback":"^4.1.0","typescript":"^4.2.3"},"types":"dist/index.d.ts","gitHead":"9a83f9bb73e32a1db5e06b68c8049c88294efc5b","_id":"popsicle-transport-http@1.1.4","_nodeVersion":"15.14.0","_npmVersion":"7.9.0","dist":{"integrity":"sha512-HyFa/ZCcObP+H7T5b6d0I6ANBvrMEnjZeglopFhBi1uxEZ95qtX8GZDKU6JSMhf+iiNhxnGPZ/OJ2Q4FnH66LQ==","shasum":"15657237784f7c94e73976e5d8c4b651bb0fcf5e","tarball":"http://registry-npm.ywwl.com/popsicle-transport-http/download/popsicle-transport-http-1.1.4.tgz","fileCount":18,"unpackedSize":150056,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgii91CRA9TVsSAnZWagAAE0IP/2XSXiHDHjfVu0u2zayd\nIfG8u3tHrXOAhcdh1awV6fVfVYUfOqTl5ORHLHpCTp2gwMZBLAXJPoAANYuo\nZ63MB6iY1yJsNlWN3MTIG6a94GtWW5y4ZTZ+dyxqhigHx3NM2gBJSUlF9AuF\nMGlTV55/sdllmYEo9ozATiq//Qc+TZYxk+6B7HDYEZawpMkqdqWYXWMEo/aJ\nR4QPkY4QJQ2TxNkAx/IMFw9QoR01xXpIxt3DoEQ6DzrZedn7YfG2oVzKIo0y\nc5FlhWeIybI5I/qZYM9IN07UgtPoWmt/9WZs3BqE3x5IqxpxfR7a4bpmNcBQ\n6+5e1vyIKdfyHpjJiJmPbHCG32RcrywJLkNqMWw4qNyWDv/JnlRCtNATPrEW\nmvslxxsc/DtKQCItI/dFTwOEZh7MZGzzz9l4+6j14bRTaPXgS3msWdIn5enH\nOViZWo9OANWZdu9MXcx5ge81pfaKx+qScOkXGRfxjmvWPpktt64ZrPUsZH+U\n5cTp66Q6Ob9V6lpnsso+L29j6O5iSz70rdo6ANgyAfyuD931xs6NIgVMraOt\nebshTQ/U7wMJVCNp9d2Z+ZnJAHAvWbk5xtN9GDuCoVIqnPt+6WwTAGe3oCGL\nhTuz6i91ZfH21adTUfLkjhKUi8g5spJ86ZkONwcJO8JcPQSTd9UG4zBdorvw\nAwvm\r\n=INuS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCw2EVpBUMd2MdmKCMFHR+3uGBCeeLaY2WXt6pPT2RvqQIhALkLNojdSSLlUzNWoe9Y48Iu6o8g7l+/hkCj9AFC+NAc"}],"size":28174,"noattachment":false,"key":"/popsicle-transport-http/-/popsicle-transport-http-1.1.4.tgz"},"_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"directories":{},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/popsicle-transport-http_1.1.4_1619668852527_0.16513805468823972"},"_hasShrinkwrap":false,"readme":"# Popsicle Transport HTTP\n\n[![NPM version][npm-image]][npm-url]\n[![NPM downloads][downloads-image]][downloads-url]\n[![Build status][build-image]][build-url]\n[![Build coverage][coverage-image]][coverage-url]\n\n> Popsicle transport for sending requests over HTTP1 and HTTP2.\n\n## Installation\n\n```\nnpm install popsicle-transport-http --save\n```\n\n## Usage\n\n```js\nimport { transport } from \"popsicle-transport-http\";\n\nconst req = new Request(\"/\");\nconst res = await transport()(req, done);\n```\n\n### Transport Options\n\nThe `transport` function sends the Servie `Request` to a remote server.\n\n- `keepAlive?: number` Duration to keep connection alive for re-use (default: `5000`)\n- `servername?: string` Override remote server name for TLS\n- `rejectUnauthorized?: boolean` Rejects unauthorized TLS connections\n- `negotiateHttpVersion?: NegotiateHttpVersion` Configure HTTP version negotiation (default: `HTTP2_FOR_HTTPS`)\n- `lookup?: DnsLookup` Override default DNS resolution (default: `dns.lookup`)\n- TLS options:\n  - `ca?: string | Buffer | Array<string | Buffer>` Set TLS CA\n  - `cert?: string | Buffer` Set TLS certificate\n  - `key?: string | Buffer` Set TLS key\n  - `secureContext?: SecureContext` Set TLS secure context\n  - `secureProtocol?: string` Set TLS secure protocol\n  - `secureOptions?: number` Set TLS secure options\n- Custom connection managers (default: `Infinity` active sockets):\n  - `tlsSockets?: ConnectionManager<TLSSocket>`\n  - `netSockets?: ConnectionManager<Socket>`\n  - `http2Sessions?: ConnectionManager<ClientHttp2Session>`\n- Custom create connections (all methods support async promises):\n  - `createHttp2Connection?: (authority, socket) => ClientHttp2Session`\n  - `createNetConnection?: (options) => Socket`\n  - `createTlsConnection?: (options) => TLSSocket`\n\n## TypeScript\n\nThis project is written using [TypeScript](https://github.com/Microsoft/TypeScript) and publishes the definitions directly to NPM.\n\n## License\n\nMIT\n\n[npm-image]: https://img.shields.io/npm/v/popsicle-transport-http.svg?style=flat\n[npm-url]: https://npmjs.org/package/popsicle-transport-http\n[downloads-image]: https://img.shields.io/npm/dm/popsicle-transport-http.svg?style=flat\n[downloads-url]: https://npmjs.org/package/popsicle-transport-http\n[build-image]: https://img.shields.io/github/workflow/status/serviejs/popsicle-transport-http/CI/main\n[build-url]: https://github.com/serviejs/popsicle-transport-http/actions/workflows/ci.yml?query=branch%3Amain\n[coverage-image]: https://img.shields.io/codecov/c/gh/serviejs/popsicle-transport-http\n[coverage-url]: https://codecov.io/gh/serviejs/popsicle-transport-http\n","publish_time":1619668852706,"_cnpm_publish_time":1619668852706,"dist-tags":{"latest":"1.2.1"}}