关于
Swift Web 服务器网关接口。
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Nest - Swift Web Server Gateway Interface
Nest provides a minimal interface between web servers supporting Swift and web applications or frameworks. It’s designed to prevent tight coupling between web servers and web applications or frameworks. To enable the use of any framework or application with any server.
Quick Links
Current Status
The specification is currently a draft, there are a couple of planned changes in the issue tracker and we welcome anyone to contribute to help improve the specification before we release version 1.0.0. We provide a proposal system allowing you to propose changes via NEPs.
Rationale and Goals
The primary goal of Nest is to enable the use of any framework or application with any server. To prevent tight coupling between web servers and web applications or frameworks.
Nest provides a minimal interface supporting every feature in HTTP. It must be extremely simple, and easy to implement for both servers and web applications.
The interface must not make use any external frameworks and only depend on core Swift language features.
Example Application
A simple Hello World web application using the Nest interface:
func application(request:RequestType) -> ResponseType {
return Response(.Ok, body: "Hello World")
}
Testing
Along with providing a specification, Nest also provides a test suite to ensure that a server correctly follows the specification, and to aid development of web servers.
Implementations
Web Servers
- Currasow - Pre-forking worker model server.
- http4swift
- NestBox - Basic Server Implementation.
Web Frameworks
Other
- Inquiline - A standard implementation of RequestType and ResponseType.
- NestTest
- Padlock - Nest middleware to lockup your web application.
See Also
License
Nest is licensed under the BSD license. See LICENSE for more information.
探索相关项目
加载中…