Skip to content

Commit

Permalink
java, not kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
tipsy committed Feb 12, 2024
1 parent ef183cb commit f1b9ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/docs/docs.md
Expand Up @@ -1835,7 +1835,7 @@ You can also use it to build simple proxy using `AsyncProxyServlet` that is part
```java
// Add org.eclipse.jetty:jetty-proxy to maven/gradle dependencies (e.g Javalin 5.3.2 uses Jetty 11.0.13)
Javalin.create(config -> {
config.jetty.modifyServletContextHandler { handler ->
config.jetty.modifyServletContextHandler(handler -> {
ServletHolder proxyServlet = new ServletHolder(AsyncProxyServlet.Transparent.class);
proxyServlet.setInitParameter("proxyTo", "https://javalin.io/");
proxyServlet.setInitParameter("prefix", "/proxy");
Expand Down

0 comments on commit f1b9ec1

Please sign in to comment.