Hi Sébastien,
> My concern is that an HTTP server built into groovy would come with its
> potential risks – even it is not used directly.
To be frank, I can not figure out... Could you tell me some exact
potential risks?
> Having to redeploy an
> app where groovy is embedded because of
Hi Daniel,
On 2016-12-11 10:33:52, Daniel Sun wrote:
> The SimpleHTTPServer will be implemented with NO 3rd part library, so
> it will not impact existing production systems. In addition, it is
> recommended to be used to provide http service for convenience(such as
> testing WebRTC app). If
That's great :)
--
View this message in context:
http://groovy.329449.n5.nabble.com/About-SimpleHTTPServer-tp5737191p5737216.html
Sent from the Groovy Dev mailing list archive at Nabble.com.
Champeau"
> À: dev@groovy.apache.org
> Cc: d...@groovy.incubator.apache.org
> Envoyé: Dimanche 11 Décembre 2016 17:20:08
> Objet: Re: About SimpleHTTPServer
> Is it just me or Remi is advising to use a com.sun class?
> Le 11 déc. 2016 17:18, "Daniel Sun" < rea
Hi Cédric,
It is also available in the openjdk, any potential problem with it?
http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/tip/src/jdk.httpserver/share/classes/com/sun/net/httpserver/package-info.java
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.
Thanks for your suggestion, mrhaki :)
In order to avoid maintaining the httpserver, I'd like to use the built-in
httpserver of JDK.
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/About-SimpleHTTPServer-tp5737191p5737213.html
Sent from the Groovy Dev mail
Is it just me or Remi is advising to use a com.sun class?
Le 11 déc. 2016 17:18, "Daniel Sun" a écrit :
> Hi Paul,
>
> The built-in httpserver of JDK suggested by Remi seems better for us,
> it is stable and does not require 3rd party library:
>
> http://hg.openjdk.java.net/jdk9/jdk9/jdk/f
Hi Paul,
The built-in httpserver of JDK suggested by Remi seems better for us,
it is stable and does not require 3rd party library:
http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/tip/src/jdk.httpserver/share/classes/com/sun/net/httpserver/package-info.java
As to hooking to the ex
Hi,
the following code snippet can be used as inspiration:
https://github.com/mrhaki/groovyrun-gradle-plugin/blob/master/src/main/groovy/com/mrhaki/gradle/groovyrun/SimpleHttpServer.groovy
It has no 3rd party dependencies and uses the Groovy socket support.
Kind regards, Hubert Klein Ikkink
>
I should have mentioned the above example is more about illustrating
groovlets rather than serving up static content but it isn't too hard
to switch between the two.
On Sun, Dec 11, 2016 at 9:59 PM, Paul King wrote:
> I don't know whether you would find listing 12.16 from ReGinA useful:
>
> It is
I don't know whether you would find listing 12.16 from ReGinA useful:
It is based on Jetty rather than com.sun.net.httpserver.HttpServer but
might provide some useful inspiration:
https://github.com/Dierk/GroovyInAction/blob/master/listings/chap12/Listing_12_16_GroovletExample.groovy
Also, I don
Hi Sébastien,
The SimpleHTTPServer will be implemented with NO 3rd part library, so
it will not impact existing production systems. In addition, it is
recommended to be used to provide http service for convenience(such as
testing WebRTC app). If we want to deploy our static web site, the
Simp
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 i
Hi Remi,
Your reply is always so helpful :-)
As far as I remember, Sun introduced the http server in Java6. It's
lucky for us that it's included in the OpenJDK too.
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/About-SimpleHTTPServer-tp57
FYIW, there is already an httpserver with the jdk
http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/tip/src/jdk.httpserver/share/classes/com/sun/net/httpserver/package-info.java
cheers,
Rémi
- Mail original -
> De: "Daniel Sun"
> À: d...@groovy.incubator.apache.org
> Envoyé: Dimanche 11 D
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 sepa
On 11.12.2016 09:02, 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).
FYI: https://docs.python
Yeah, I think so too, but I'm not sure whether Groovy already has some
similar function or not...
Cheers,
Daniel.Sun
--
View this message in context:
http://groovy.329449.n5.nabble.com/About-SimpleHTTPServer-tp5737191p5737196.html
Sent from the Groovy Dev mailing list archive at Nabble.com.
Hi,
On Sun, Dec 11, 2016 at 01:02:23AM -0700, 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).
19 matches
Mail list logo