Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

ggrandes/httpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

httpd

httpd is a simple HTTP Server in Java. Open Source project under Apache License v2.0

Current Stable Version is 1.1.2


DOC

Usage Example (command line)

java -jar httpd-x.x.x.jar <tcp-port> <directory|zipfile>

Usage Example (code)

	HttpServer srv = new HttpServer(8080, "/srv/wwwroot/");
	srv.setReadTimeoutMillis(180000);
	srv.start();
	// ...
	srv.stop();

MAVEN

Add the dependency to your pom.xml:

<dependency>
    <groupId>org.javastack</groupId>
    <artifactId>httpd</artifactId>
    <version>1.1.2</version>
</dependency>

Inspired in Apache HTTPD, this code is Java-minimalistic version.