groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <realblue...@hotmail.com>
Subject Re: About SimpleHTTPServer
Date Sun, 11 Dec 2016 10:20:34 GMT
Hi Jochen,

       Given we have a directory containing some web pages and want to
access these pages via http protocal(e.g. we want to test WebRTC app), we
have to run a httpserver to provide http service. In the past, we have to
use Python to achieve the requirement because its SimpleHTTPServer is very
easy to use, just run "python -m SimpleHTTPServer 8000" to serve files of
current directory. As you know, my favorite programming language is Groovy,
so I want to find or implement similar function in Groovy :) 
        If I implement it, I want to rely on NO 3rd part library(e.g.
netty). It's lucky that JDK provide a httpserver as Remi suggested. Groovy's 
SimpleHTTPServer can rely on it ;)

Cheers,
Daniel.Sun



--
View this message in context: http://groovy.329449.n5.nabble.com/About-SimpleHTTPServer-tp5737191p5737203.html
Sent from the Groovy Dev mailing list archive at Nabble.com.

Mime
View raw message