Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4836C200BD7 for ; Sun, 11 Dec 2016 10:55:35 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 46B48160B20; Sun, 11 Dec 2016 09:55:35 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 88B97160B07 for ; Sun, 11 Dec 2016 10:55:34 +0100 (CET) Received: (qmail 83766 invoked by uid 500); 11 Dec 2016 09:55:33 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Delivered-To: moderator for dev@groovy.apache.org Received: (qmail 71155 invoked by uid 99); 11 Dec 2016 09:38:27 -0000 X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.98 X-Spam-Level: X-Spam-Status: No, score=0.98 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled References: <1481443343389-5737191.post@n5.nabble.com> User-agent: mu4e 0.9.18; emacs 26.0.50.8 From: =?utf-8?Q?S=C3=A9bastien?= Le Callonnec To: dev@groovy.apache.org Subject: Re: About SimpleHTTPServer Reply-To: sebastien@weblogism.com In-reply-to: <1481443343389-5737191.post@n5.nabble.com> X-Organisation: Coucou Wahlou Date: Sun, 11 Dec 2016 09:38:10 +0000 Message-ID: <87vauqst4t.fsf@weblogism.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 2200289896717980875 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeelfedriedtgddtvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecu archived-at: Sun, 11 Dec 2016 09:55:35 -0000 Hi Daniel, On 2016-12-11 08:02:23, Daniel Sun wrote: > Hi all, > > Does Groovy provide any function like Python's SimpleHTTPServer(e.g. > python -m SimpleHTTPServer 8000)? If no similar module exits, I'd like to > implement one via Groovy 3(e.g. groovy -m SimpleHTTPServer 8000). As a separate library, this would indeed be a nice feature to have – but as a core Groovy feature, I am bit more wary that this would cause bloat and bring in potential vulnerabilities that users don't necessarily want to worry about in production apps. Regards, Sébastien.