{"_id":"@alt-javascript/camel-lite-component-http","_rev":"3-61f29ba6544c835fdb067087a5f9944a","name":"@alt-javascript/camel-lite-component-http","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.2":{"name":"@alt-javascript/camel-lite-component-http","version":"1.0.2","keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","http","https","rest","component"],"author":{"name":"Craig Parravicini"},"_id":"@alt-javascript/camel-lite-component-http@1.0.2","maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"contributors":[{"url":"Anthropic","name":"Claude"},{"name":"Apache Camel — design inspiration and pattern source"}],"homepage":"https://github.com/alt-javascript/camel-lite#readme","bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"dist":{"shasum":"4099cc6f0b3829fe44530687c093ef9efa7cecd7","tarball":"https://registry.npmjs.org/@alt-javascript/camel-lite-component-http/-/camel-lite-component-http-1.0.2.tgz","fileCount":7,"integrity":"sha512-K7mU3EULo/sJouK9acrAEsRE752Wyaq6h25iJcekMfdO27HpUo9o3DORbfLFIGo1FnZV8HB2gq9eyvShQcr3EQ==","signatures":[{"sig":"MEUCIANJp0M86g7Kle1a8Yrl+wCqVlwvTkXuGmndTgu/VSijAiEAkLdPoGBuO7UiK0bm97b6B0BmPif6HsyN2IYKnHVwlk0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alt-javascript%2fcamel-lite-component-http@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12446},"type":"module","exports":{".":"./src/index.js"},"gitHead":"9f948b9f02d85c9f593229684c475cd209369f2c","scripts":{"test":"node --test"},"_npmUser":{"name":"craigparra","email":"craigparra@gmail.com"},"repository":{"url":"git+https://github.com/alt-javascript/camel-lite.git","type":"git"},"_npmVersion":"11.9.0","description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@alt-javascript/common":"^3.0.7","@alt-javascript/config":"^3.0.7","@alt-javascript/logger":"^3.0.7","@alt-javascript/camel-lite-core":"1.0.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/camel-lite-component-http_1.0.2_1774595606788_0.8287222788057291","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@alt-javascript/camel-lite-component-http","version":"1.1.0","keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","http","https","rest","component"],"author":{"name":"Craig Parravicini"},"_id":"@alt-javascript/camel-lite-component-http@1.1.0","maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"contributors":[{"url":"Anthropic","name":"Claude"}],"homepage":"https://github.com/alt-javascript/camel-lite#readme","bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"dist":{"shasum":"08f608431a227bd8beece62577e0d45ac94c1864","tarball":"https://registry.npmjs.org/@alt-javascript/camel-lite-component-http/-/camel-lite-component-http-1.1.0.tgz","fileCount":7,"integrity":"sha512-lABZmvSgee/yJZa8J73Tu8B3Tde0Yi4zFZuPyJ0VbG3FfM5TmhywcMXd+v0tQBvAcX95DvVc1sif/Yy9HwwNkA==","signatures":[{"sig":"MEYCIQCu10gjEptg3Qj8MiPSVWuPnkMrmUQAdwcQv8RKP8VDMgIhAMrrygO7BZC9VqXvBRFwmXsnMyCvHDua1LSd4lDefN87","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alt-javascript%2fcamel-lite-component-http@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12384},"type":"module","exports":{".":"./src/index.js"},"gitHead":"c227a03632d4b1e2f93b4562c7e74f52ba87d340","scripts":{"test":"node --test"},"_npmUser":{"name":"craigparra","email":"craigparra@gmail.com"},"repository":{"url":"git+https://github.com/alt-javascript/camel-lite.git","type":"git"},"_npmVersion":"11.9.0","description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@alt-javascript/common":"^3.0.7","@alt-javascript/config":"^3.0.7","@alt-javascript/logger":"^3.0.7","@alt-javascript/camel-lite-core":"1.1.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/camel-lite-component-http_1.1.0_1774763511006_0.14107901874589546","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@alt-javascript/camel-lite-component-http","version":"1.1.1","type":"module","exports":{".":"./src/index.js"},"dependencies":{"@alt-javascript/logger":"^3.0.7","@alt-javascript/config":"^3.0.7","@alt-javascript/common":"^3.0.7","@alt-javascript/camel-lite-core":"1.1.1"},"scripts":{"test":"node --test"},"repository":{"type":"git","url":"git+https://github.com/alt-javascript/camel-lite.git"},"author":{"name":"Craig Parravicini"},"contributors":[{"name":"Claude","url":"Anthropic"}],"keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","http","https","rest","component"],"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"gitHead":"ff8501eed381d38ac20f56aea721274466d64212","_id":"@alt-javascript/camel-lite-component-http@1.1.1","description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"homepage":"https://github.com/alt-javascript/camel-lite#readme","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-7iAVgKaTT3kjsh/l4Lh3i/LwHL+0vNZQp1IDjZh2pC6SXKyk9rHtjlSm4qApCBQcSmoJixvO6498tJtwEA2BxA==","shasum":"33ccfc02b1d27e6ea7636b32c082e5b360114150","tarball":"https://registry.npmjs.org/@alt-javascript/camel-lite-component-http/-/camel-lite-component-http-1.1.1.tgz","fileCount":7,"unpackedSize":12384,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alt-javascript%2fcamel-lite-component-http@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDRJ9aGOvVt3jueIWIGF9bdrDe0fD9EpKVMyWMajj6J9wIhAIqk5JHJVCC+jMTrW8i3PPjFnks+pswyyWmpQ6HdmeHa"}]},"_npmUser":{"name":"craigparra","email":"craigparra@gmail.com"},"directories":{},"maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/camel-lite-component-http_1.1.1_1774764465039_0.21056587537681626"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-27T07:13:26.685Z","modified":"2026-03-29T06:07:45.471Z","1.0.2":"2026-03-27T07:13:26.997Z","1.1.0":"2026-03-29T05:51:51.127Z","1.1.1":"2026-03-29T06:07:45.203Z"},"bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"author":{"name":"Craig Parravicini"},"homepage":"https://github.com/alt-javascript/camel-lite#readme","keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","http","https","rest","component"],"repository":{"type":"git","url":"git+https://github.com/alt-javascript/camel-lite.git"},"description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","contributors":[{"name":"Claude","url":"Anthropic"}],"maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## What\n\nHTTP producer for outbound fetch requests. Sends the exchange body as the request body and sets the response body on the exchange. Producer-only — there is no embedded server/consumer. For inbound HTTP, use [Hono](https://hono.dev/) or Express and bridge via `direct:`.\n\n## Install\n\n```sh\nnpm install camel-lite-component-http\n```\n\n## URI Syntax\n\n```\nhttp://host/path[?method=GET&contentType=application/json&headers.X-Custom=value]\n```\n\n| Parameter      | Default              | Description |\n|----------------|----------------------|-------------|\n| `method`       | `GET`                | HTTP method: `GET`, `POST`, `PUT`, `DELETE`, or `PATCH`. |\n| `contentType`  | `application/json`   | Value for the `Content-Type` request header. |\n| `headers.*`    | *(none)*             | Additional request headers. e.g. `headers.Authorization=Bearer+token`. |\n\n## Usage\n\n```js\nimport { CamelContext } from 'camel-lite-core';\nimport { HttpComponent } from 'camel-lite-component-http';\n\nconst context = new CamelContext();\ncontext.addComponent('http', new HttpComponent());\n\ncontext.addRoutes({\n  configure(ctx) {\n    ctx.from('direct:callApi')\n      .to('http://api.example.com/users?method=POST&contentType=application/json');\n  }\n});\n\nawait context.start();\n\nconst template = context.createProducerTemplate();\nconst exchange = await template.send('direct:callApi', ex => {\n  ex.in.body = JSON.stringify({ name: 'Alice' });\n});\nconsole.log('Response:', exchange.in.body);\n\nawait context.stop();\n```\n\n## See Also\n\n[camel-lite — root README](../../README.md)\n","readmeFilename":"README.md"}