A basic HTTP server written in Java.
Includes cobspec
package for passing 8th Light’s Cob Spec HTTP server acceptance test suite.
- JDK 8
- Gradle
- Build the JAR using
gradle build
from thejavaServer
root directory - Start the server with
java -jar build/libs/javaServer.jar -p PORT -d PATH/TO/COB_SPEC/PUBLIC
- If you don’t specify a port or directory, port defaults to 5000 and directory to the relative path to the Cob Spec
public
directory, included atjavaServer/src/main/resources/cobspec/
- If you don’t specify a port or directory, port defaults to 5000 and directory to the relative path to the Cob Spec
- Run the tests using
gradle check
from thejavaServer
root directory