Skip to content

A simple HTTP proxy that can be used inside Java Servlet environments like Wicket, JavaSpark etc. or inside a ServletFilter.

License

Notifications You must be signed in to change notification settings

Indoqa/http-proxy

Repository files navigation

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 it delegates all requests after a proxyMountPath to another server definded by targetBaseUrl.

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

About

A simple HTTP proxy that can be used inside Java Servlet environments like Wicket, JavaSpark etc. or inside a ServletFilter.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages