Skip to content

Commit

Permalink
Added http2 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed May 15, 2017
1 parent 4052b6a commit d68dd30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

![Alt logo](https://cdn.rawgit.com/noboomu/proteus/master/src/main/resources/proteus-logo.svg)
![Alt logo](https://cdn.rawgit.com/noboomu/proteus/master/src/main/resources/io/sinistral/proteus/proteus-logo.svg)

An extremely lightweight, flexible, and fast [Swagger](http://swagger.io/) first REST API framework atop [Undertow](http://undertow.io).
A great deal of inspiration came from working with the following excellent projects: [Play](http://playframework.com), [Jooby](http://jooby.org), and [light-4j](https://github.com/networknt/light-4j).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/sinistral/proteus/ProteusApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public void buildServer()
.addHttpListener(config.getInt("application.ports.http"),config.getString("application.host"))
.setBufferSize(16 * 1024)
.setIoThreads( config.getInt("undertow.ioThreads") )
.setServerOption(UndertowOptions.ENABLE_HTTP2, false)
.setServerOption(UndertowOptions.ENABLE_HTTP2, config.getBoolean("undertow.enableHttp2"))
.setServerOption(UndertowOptions.ALWAYS_SET_DATE, true)
.setSocketOption(org.xnio.Options.BACKLOG, config.getInt("undertow.socket.backlog") )
.setServerOption(UndertowOptions.ALWAYS_SET_KEEP_ALIVE, false)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.undertow.protocols.alpn.JettyAlpnProvider

0 comments on commit d68dd30

Please sign in to comment.