Code Monkey home page Code Monkey logo

http-server's Introduction

http-server

When I was studying computer science at TU-Darmstadt there was this assignment to implement an http-server that proxies requests and caches responses (maybe in 2003 or 2004). In the same year I separated the http-parts and turned them into a simple http-server with no caching functionality. Over a decade later I now put this to github (after having mevenized it).

Build it with mvn clean install

Unzip the zip-archive found in target/http-server-*-dist.zip and unpack it to a destination of your choice. In that directory run it with

java -jar http-server-*.jar 8080

You'll find a tiny interactive console:

Will try to listen on port 8080
HTTP/1.x Server

Commands:
quit - gracefully quits the server.
help - displays this text.
gc - run garbage-collector
status - status info
?>

Then you might want to visit http://localhost:8080/index.html or whatever you put in the htdocs-directory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.