{"_id":"@aoeu/http-client","_rev":"2-29127cd75c396499e2b03a6a303e2a7b","name":"@aoeu/http-client","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.2":{"name":"@aoeu/http-client","version":"0.0.2","description":"Base http client for http service client libraries. Uses isomorphic-fetch, and wraps the fetch api.","author":{"name":"Bob Yexley","email":"bob@yexley.net"},"homepage":"","license":"MIT","private":false,"main":"dist/cjs/index.js","module":"dist/esm/index.js","scripts":{"build":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node ../package-build/post-build.js $(pwd)"},"dependencies":{"isomorphic-fetch":"^3.0.0"},"devDependencies":{"@aoeu/package-build":"^0.0.2"},"publishConfig":{"access":"public"},"gitHead":"0d401e69b2d37b7b23af683a75f20b2e2efa0614","_id":"@aoeu/http-client@0.0.2","_nodeVersion":"12.22.3","_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (darwin)","dist":{"integrity":"sha512-4pYhx3AdHztVvctnK7pD6sDRJdg7YplGijSNfSBQrpqxn9hMyaBSLEFoGPQ2+QPf2BQFV2ZwOg442IyliJz3TQ==","shasum":"7c557c0888dc5bd529bbe8dc0cc60483c013381a","tarball":"https://registry.npmjs.org/@aoeu/http-client/-/http-client-0.0.2.tgz","fileCount":8,"unpackedSize":13634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzFelCRA9TVsSAnZWagAA3zQP/1eFcKJwqTnrepXbHxNP\n20N1fU42xqA1Qfd+eaHY3vyKFJewrATQiOo05U1n+EOeF7j9PX0+yk7xaQ8W\ncftzA7LUvWRv5rQ7OUBXcen9lBJHsXXLqCu3LV8TNJuhg2PYGlNo9zhmv0ZA\nSFIU92zj8kpN+GYuNB8a9SM1eBFYk3Vt0ufhoOtgMiSPFuAjcR8iTNTzYFLt\nTYafpAGaOXxqFzK0Fb7zGAOM3ZtndxbhjtTJDqw67QfSADBZtiKG/Cmbu+Rh\nnSzPwbSQZtimniyT6I5/aItItC83DCvTOP3qUrJFbUG+Ri+tb0X15tnym+Gf\nvQTQjSFoloF814ofe9JB/ViUq45VzQWGjlORgu11y3/6Bo9TbFdU4B6rmLFP\nwMUjOJn5zYga3aYf2rS1bCc96ysDknUADNHCHR+d5gQ+Sm0NfzA8VwrO+Rtr\n5esWnsSWss2//9r3/gxlg8TerZtxS+fRypGzEdXFuRNU8cMzxdI9jEtA6+La\nJ7+oUF4axSmo8j6fAnyYw4R6ASgNoO3PNvYEFCjYgj5WCQtJfawQb9Q7ccF8\nSW/ohdrwdWus+6pjZPECoDgVwHcr4gsGcEuM8ILQg9vCxshGXIo7KU2vcScd\nwIh2/x1fi3N9vB2hHh8CyfZspPhvfStBkxiO72ASboo33679eKhrPYi108PK\ns2rE\r\n=sgJ7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHOl4WNMWsG4fsnRfmERGQvYpF+7AFkesoHhfkXJfYKmAiA0E4igKQTMCxDb3/LD7lyTH6ZdlZLxjtZPWTwBEj490A=="}]},"_npmUser":{"name":"ryexley","email":"bob@yexley.net"},"directories":{},"maintainers":[{"name":"theantichris","email":"chris@theantichris.com"},{"name":"thomas.jean","email":"thomas.jean486@gmail.com"},{"name":"ryexley","email":"bob@yexley.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-client_0.0.2_1635350105637_0.08798555860519341"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-27T15:55:05.594Z","0.0.2":"2021-10-27T15:55:06.002Z","modified":"2022-04-04T14:28:33.218Z"},"maintainers":[{"name":"theantichris","email":"chris@theantichris.com"},{"name":"thomas.jean","email":"thomas.jean486@gmail.com"},{"name":"ryexley","email":"bob@yexley.net"}],"description":"Base http client for http service client libraries. Uses isomorphic-fetch, and wraps the fetch api.","author":{"name":"Bob Yexley","email":"bob@yexley.net"},"license":"MIT","readme":"@aoeu/http-client\n\nThis is a base http client library that uses [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch) to normalize the use of the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) across browsers, and a node.js environment. This library provides a foundation library for making [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/fetch) calls to http resources that supports most standard http verbs (`GET`, `POST`, `PATCH` and `DELETE` currently), and provides a consistent, predictable response structure that consists of two main properties:\n\n```js\n{\n  status,\n  data\n}\n```\n\n## `status`\n\nThis represents the [http status code](https://httpstatuses.com/) of the response made to the resource.\n\n## `data`\n\nThis is the body returned from the result of the request made to the resource, _which can often be empty_.\n","readmeFilename":"README.md"}