Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

pietvandongen/http2-brain-upgrade

Repository files navigation

HTTP/2 Brain Upgrade Demo Server Implementation

A demonstration implementation of an HTTP/2 server (using Vert.x) for the Luminis HTTP/2 Brain Upgrade.

Build status

Build Status Codecov Docker Pulls

See it in action

The quickest way to see the server in action is to pull its Docker container image, run it and go to your browser:

docker run -p 8080:8080 pietvandongen/http2-demo-server

Then visit https://localhost:8080/ and get glorious HTTP/2 responses!

Building

You can build the server either as a JAR with dependencies (using Gradle), or as a container (using Docker).

Using Gradle

In your terminal, go to this project's directory and type:

./gradlew build

This will build a JAR with dependencies, which can be found in /build/libs/server.jar.

Using Docker

Build a Docker container tagged http2-demo-server like this:

docker build -t http2-demo-server .

How to run

Depending on your build artifact, you can either run the server on the JVM or use Docker.

When it is running, you can go to https://localhost:8080/ to access the server!

As a JAR

Using the artifact resulting from the Gradle build step, run:

java -jar build/libs/server.jar

As a Docker container

Using the previously built container image, run:

docker run -p 8080:8080 http2-demo-server

About

A demonstration implementation of an HTTP/2 server (using Vert.x) for the Luminis HTTP/2 Brain Upgrade.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published