You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Smiley's HTTP Proxy Servlet
2
2
===========================
3
3
4
-
This is an HTTP Proxy (aka gateway) in the form of a Java servlet. An HTTP proxy is useful for AJAX applications to communicate with web accessible services on hosts other than where the web application is hosted.
4
+
This is an HTTP Proxy (aka gateway) in the form of a Java servlet. An HTTP proxy is useful for AJAX applications to communicate with web accessible services on hosts other than where the web application is hosted. It's a _reverse proxy_, and not really a _forwarding proxy_ albeit the template form of the servlet may blur that line.
5
5
6
6
This is hardly the first proxy, so why did I write it and thus why might you use it?
7
7
@@ -16,6 +16,8 @@ I've found such proxies to support a limited HTTP subset, such as only a GET req
16
16
Disappointed at the situation, I set out to create a simple one that works well and that is well tested so I know it works.
17
17
I suggest you use a well tested proxy instead of something non-tested that is perhaps better described as a proof-of-concept.
18
18
19
+
If you need something more sophisticated than there are some alternatives listed at the bottom of this page.
20
+
19
21
This proxy depends on [Apache HttpClient](http://hc.apache.org/httpcomponents-client-ga/), which offers another point of extension for this proxy.
20
22
At some point I may write an alternative that uses the JDK and thus doesn't have any dependencies, which is desirable.
21
23
In the mean time, you'll have to add the jar files for this and its dependencies:
@@ -199,3 +201,10 @@ Then create register Smiley's proxy servlet with Jetty through the Dropwizard se
This servlet is intentionally simple and limited in scope. As such it may not meet your needs, so consider looking at these alternatives:
208
+
* Jetty's ProxyServlet: https://www.eclipse.org/jetty/documentation/9.4.x/proxy-servlet.html This is perhaps the closest competitor (simple, limited scope, no dependencies), and may very well already be on your classpath.
0 commit comments