【文件属性】:
文件名称:JHttpServer:一个简单的用Java实现的http服务器
文件大小:1.05MB
文件格式:ZIP
更新时间:2021-05-29 06:37:09
Java
JHttp服务器
一个简单的 Java 中的 http 服务器实现,带有高级 api。
特征
支持GET POST PUT PATCH DELETE
支持饼干
支持中间件
支持 CORS 配置
例子
WebServer server = new WebServer ();
// regitster a GET router
server . get( " / " , new Execution () {
@Override
public void onExecute ( Request req , Response res ) {
try {
res . send( new File ( " ./layouts/index.html " ));
} catch ( IOException e) {
e . prin
【文件预览】:
JHttpServer-master
----.gitignore(94B)
----JHttpServer.iml(2KB)
----LICENSE(1KB)
----libs()
--------commons-io-2.4.jar(181KB)
--------commons-io-2.4-javadoc.jar(707KB)
--------commons-io-2.4-sources.jar(241KB)
----README.md(1KB)
----JHttpServer-core()
--------src()
--------JHttpServer-core.iml(1KB)
--------pom.xml(647B)
--------config()
----JHttpServer-sample()
--------src()
--------JHttpServer-sample.iml(487B)
--------layouts()
----webapp()
--------src()
--------www()
--------webapp.iml(487B)