{"name":"popsicle-transport-http","version":"1.1.3","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":"44c2f7dd535cc34d5feb07ea0379992f763d8899","_id":"popsicle-transport-http@1.1.3","_nodeVersion":"15.11.0","_npmVersion":"7.5.3","dist":{"integrity":"sha512-NYXgiwBw87vzh/r7Igwa80f6nyYwvMMjLJsL6hnQugIy0sJ7c4JRkUDCja31WHdVukCfMj6s+BVzISYdQHg37g==","shasum":"6d1703f2c033b138be03f6891f29477f32fde0e6","tarball":"http://registry-npm.ywwl.com/popsicle-transport-http/download/popsicle-transport-http-1.1.3.tgz","fileCount":18,"unpackedSize":149912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUS7ICRA9TVsSAnZWagAAdZkP/0v23hb0dGonO3Y1sE6o\n7RpVFb97EtjhOf2cq+IV8YJURuEzA3ZvwI/Azvlp85EM9MRzUmT8GobBEmkl\nXxVDqCK/PYulI3xEw76qIuzfFUBupIvrfw8/TtOJwSFn9W4xP1wOESbI0k7p\nt1qFdxpJUg7bxZqJsibES7tQclObFOIZKdctNpDP/sMeT/3ALk1MaWrCJAeI\nhc1qbKvpEuuDbIopWSwP/wleEhyDVQKVgRrm4sojFmKlz8/gRWYGbOB1cSUv\njeIx0PcI+K+6Fc2N0Nwzq0BpYT4IWr7jWr/llHq4JEcIRm1o/FmfWrZUhkbE\nC82Iwh2VY1a++QHku+k5928mhTNii35qgM31yPpeVQz0HyA+m6PTw4y8TmXm\nqaoBR7NLRofFNZOkN2NDaUhnkDMj8CiQQaTJYxcMZ53LV3t245a5Q9cf2XGF\nI7t9p9WkzEcNQsFa8Yf/2erp9AYcrtcDFWV8FY+VO6+GxMhw8O3pYxF+7JA2\nT0WpujfsAihHaOnMh5w2itO9FYM2Fj+6L3yX94uOSB6h6h/1JHcOAbwUHk94\nPp1CBasA13MhmtPL2CdSZqPZC8Hr0co/8GgF+4TnabuSF9pxr9uUTT/XI2Ya\n63ZJs6t7ziO6lbCeRJXtrc/LADobYr2wzb6JdTVoC3mQRfrJdIz9VeF824zs\nE4Hn\r\n=NZkB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHOeHvl3LkitXdiUXyTfYFfm8CCqrd8BB5Lc8ncjhmA6AiEArsPWJLwL0tVRHE7C3MTEvjokPX0FgXMTII52w8hHEVM="}],"size":28404,"noattachment":false,"key":"/popsicle-transport-http/-/popsicle-transport-http-1.1.3.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.3_1615933127591_0.8635063250346942"},"_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":1615933127763,"_cnpm_publish_time":1615933127763,"dist-tags":{"latest":"1.2.1"}}