{"library":"orator-http-proxy","title":"orator-http-proxy","description":"HTTP proxy pass-through module for Orator service servers. It forwards incoming requests matching configured route prefixes to a backend destination URL. Works with Fable and Orator frameworks. Supports GET, PUT, POST, DELETE. Handles HTTP-to-HTTPS proxying. Version 1.0.5 is stable but low activity. Similar to http-proxy-middleware but specifically integrated with the Orator ecosystem.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install orator-http-proxy"],"cli":null},"imports":["const libOratorHTTPProxy = require('orator-http-proxy');","Fable.OratorHTTPProxy.connectProxyRoutes();","Fable.serviceManager.addServiceType('OratorHTTPProxy', require('orator-http-proxy'));"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const libFable = require('fable');\nconst libOrator = require('orator');\nconst libOratorServiceServerRestify = require('orator-serviceserver-restify');\nconst libOratorHTTPProxy = require('orator-http-proxy');\n\nconst _Fable = new libFable({\n  Product: 'MyProxyServer',\n  ServicePort: 8080\n});\n\n_Fable.serviceManager.addServiceType('Orator', libOrator);\n_Fable.serviceManager.addServiceType('OratorServiceServer', libOratorServiceServerRestify);\n_Fable.serviceManager.instantiateServiceProvider('Orator');\n_Fable.serviceManager.instantiateServiceProvider('OratorServiceServer');\n\n_Fable.serviceManager.addServiceType('OratorHTTPProxy', libOratorHTTPProxy);\n_Fable.serviceManager.instantiateServiceProvider('OratorHTTPProxy', {\n  DestinationURL: 'http://backend-api:3000/',\n  RequestPrefixList: ['/api/v1/*']\n});\n\n_Fable.Orator.initialize(() => {\n  _Fable.OratorHTTPProxy.connectProxyRoutes();\n  _Fable.Orator.startService();\n});","lang":"javascript","description":"Sets up Orator with Restify and configures HTTP proxy to forward requests matching /api/v1/* to backend API.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}