MyGit

ringabout/httpx

Fork: 6 Star: 90 (更新于 2024-11-06 07:25:19)

license: Apache-2.0

Language: Nim .

Cross platform web server for Nim.

最后发布版本: v0.3.7 ( 2023-07-31 10:24:23)

GitHub网址

httpx

This project is based on Dom96's perfect work on httpbeast and adds windows support(based on wepoll namely IOCP).

It is also used by prologue.

Installation

nimble install httpx

Notes

Notes that multi-threads may be slower than single-thread!

Usage

Change server info name

-d:serverInfo:serverName

Enable threads

--threads:on

Hello world

import options, asyncdispatch

import httpx

proc onRequest(req: Request): Future[void] =
  if req.httpMethod == some(HttpGet):
    case req.path.get()
    of "/":
      req.send("Hello World")
    else:
      req.send(Http404)

run(onRequest)

Websocket support

https://github.com/ringabout/websocketx

nimble install https://github.com/ringabout/websocketx

最近版本更新:(数据更新于 2024-09-23 07:30:57)

2023-07-31 10:24:23 v0.3.7

2023-04-18 00:27:35 v0.3.6

2022-12-28 10:45:13 v0.3.5

2022-11-25 14:51:26 v0.3.4

2022-10-11 01:48:56 v0.3.2

2022-06-11 05:51:02 v0.3.0

2022-01-20 13:31:24 v0.2.8

2021-08-13 22:06:48 v0.2.6

2020-10-22 23:14:38 v0.2.4

2020-10-13 09:13:54 v0.2.2

ringabout/httpx同语言 Nim最近更新仓库

1970-01-01 00:00:00 JasonFruit/mdserver

1970-01-01 00:00:00 codex-storage/apatheia

1970-01-01 00:00:00 zer0-star/matsuri

1970-01-01 00:00:00 squattingmonk/nasher

1970-01-01 00:00:00 zedeus/nitter

1970-01-01 00:00:00 abisxir/alasgar