yisibell / h3-proxy Goto Github PK
View Code? Open in Web Editor NEWA http(s) proxy event handler for h3, using proxyRequest.
License: MIT License
A http(s) proxy event handler for h3, using proxyRequest.
License: MIT License
Provide a way to customize the proxyRequest
method.
I am currently using your package in my project.
The package works well for proxying API requests.
However, I have encountered a limitation that I believe could be a valuable addition to your package .
The component successfully proxies API requests made to /api
. All requests to the /api
endpoint are forwarded to a single specified server.
I would like the component to support routing requests to different servers based on the API route. Specifically, I want requests to /api/xxx1
to be proxied to one server, while all other /api
requests (except /api/xxx1
) are proxied to a different server. This feature is crucial for my project as it involves interacting with multiple backend services.
/api/xxx1
should be forwarded to Server A
(Dev server)./api
routes (like /api/xxx2
, /api/xxx3
, etc.) should be forwarded to Server B
(Service Gateway).This feature is particularly useful in a microservices architecture where different microservices are hosted on separate servers. It allows for more flexibility and control over the routing of API requests.
I believe this feature could benefit other users who might be in a similar situation. I am looking forward to your thoughts on this and would greatly appreciate it if this feature could be considered for implementation in a future release.
Thank you for your time and effort in maintaining this component.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.