ServestDeno 的渐进式 HTTP 服务器
Servest 是 Deno 的 HTTP 模块套件,它由 HTTP 协议相关的三个主要 API 组成:
- Router API:通用 HTTP 路由服务器。
- Server API:用于处理 HTTP/1.1 请求的低级 HTTP API。
- Agent API:用于管理与主机的 HTTP/1.1 Keep-Alive 连接的低级 API。
// @deno-types="https://servestjs.org/@v1.0.0-rc2/types/react/index.d.ts"
import React from "https://dev.jspm.io/react/index.js";
// @deno-types="https://servestjs.org/@v1.0.0-rc2/types/react-dom/server/index.d.ts"
import ReactDOMServer from "https://dev.jspm.io/react-dom/server.js";
import { createApp } from "https://servestjs.org/@v1.0.0-rc2/mod.ts";
const app = createApp();
app.handle("/", async (req) => {
await req.respond({
status: 200,
headers: new Headers({
"content-type": "text/html; charset=UTF-8",
}),
body: ReactDOMServer.renderToString(
<html>
<head>
<meta charSet="utf-8" />
<title>servest</title>
</head>
<body>Hello Servest!</body>
</html>,
),
});
});
app.listen({ port: 8899 });
评论
UnicornRack 的 HTTP 服务器
Unicorn是一个为运行Rack应用的HTTP服务器。Unicorn 是一个利用Unix的高级特性开发的,只为具备低延迟,高带宽的连接的客户服务的HTTP服务器软件。慢的客户服务需要通过放置一个反向
UnicornRack 的 HTTP 服务器
0
StarmanPSGI 的 HTTP 服务器
Starman是一个高性能、preforking和PSGI兼容的HTTP服务器,支持HTTP/1.1、多网络接口支持以及UnixDomain套接字支持,可无缝进行重启,支持通过操作系统信号进行动态的w
StarmanPSGI 的 HTTP 服务器
0
FiledLinux 的 HTTP 服务器
Filed是Linux上面通过HTTP服务本地静态文件的简单快速的HTTP服务器。它尽最小的努力把处理点转移到内核中。Filed是多线程的,每个线程服务单个并发客户端,它试图减少因为缓存打开文件描述符
FiledLinux 的 HTTP 服务器
0
Personal ServerAndroid的HTTP服务器
PersonalServer是一个基于Android手机的HTTP服务器,用于局域网内的文件分享。
Personal ServerAndroid的HTTP服务器
0
luahttpd高性能的http服务器
这是一个高性能的httpserver,使用lua来做后台脚本语言,采用异步回调的方式,大大减少服务器消耗。支持mysql数据库访问,后续也会支持其他数据库,也可以支持采用统一协议的服务器之间tcp通信
luahttpd高性能的http服务器
0