https://github.com/indoqa/http-proxy
A simple HTTP proxy that can be used inside Java Servlet environments like Wicket, JavaSpark etc. or inside a ServletFilter.
https://github.com/indoqa/http-proxy
http-proxy indoqa-library java wicket
Last synced: about 2 months ago
JSON representation
A simple HTTP proxy that can be used inside Java Servlet environments like Wicket, JavaSpark etc. or inside a ServletFilter.
- Host: GitHub
- URL: https://github.com/indoqa/http-proxy
- Owner: Indoqa
- License: apache-2.0
- Created: 2016-01-30T09:23:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-06-04T01:00:59.000Z (almost 4 years ago)
- Last Synced: 2025-01-08T18:17:43.537Z (4 months ago)
- Topics: http-proxy, indoqa-library, java, wicket
- Language: Java
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 8
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# indoqa-http-proxy
A simple http proxy that can be used inside Java Servlet environments like Wicket, JavaSpark etc. or inside a ServletFilter. Inspired by the simplicity of [node-http-proxy](https://www.npmjs.com/package/http-proxy) it delegates all requests after a *proxyMountPath* to another server definded by *targetBaseUrl*.
```java
HttpProxy httpProxy = new HttpProxyBuilder("/proxy/mount/path", "http://targer.url/mount/path").build();HttpServletRequest request = ..
HttpServletResponse response = ..httpProxy.proxy(request, response);
``````
GET http://servlet.host/proxy/mount/path/api/v1/testresource
-> http://targer.url/mount/path/api/v1/testresource
```