首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 一个轻量级的、可配置的Web服务器程序在内存中

一个轻量级的、可配置的Web服务器程序在内存中

资 源 简 介

Written in Scala, miniweb is a wrapper over an in-memory jetty instance. Useful for testing or for firing up a lightweight http endpoint in an application. Getting Started The easiest way is to grab the latest zip bundle, which includes bittyweb and all its dependencies in a single JAR. Stick that on your classpath. This simple example constructs and starts a server, setting up some HTML to return for any URL: val webServer = new HttpServer(9001)webServer.run()webServer.updateHtml(

Hello World!

)...webServer.stop() Dependencies bittyweb is written in scala, therefore it depends on the Scala libraries (currently 2.7.4). It also uses Jetty internally.

文 件 列 表

bittyweb-scala.jar
jetty-continuation-7.0.0.M1.jar
jetty-http-7.0.0.M1.jar
jetty-io-7.0.0.M1.jar
jetty-server-7.0.0.M1.jar
jetty-util-7.0.0.M1.jar
scala-compiler.jar
scala-library.jar
servlet-api-2.5-20081211.jar
VIP VIP
0.207622s