swifter

所属分类:编程语言基础
开发工具:Swift
文件大小:0KB
下载次数:0
上传日期:2023-05-03 02:33:54
上 传 者sh-1993
说明:  用Swift编程语言编写的微型http服务器引擎。
(Tiny http server engine written in Swift programming language.)

文件列表:
.swiftlint.yml (107, 2018-05-11)
LICENSE (1493, 2018-05-11)
Package.swift (136, 2018-05-11)
Sources/ (0, 2018-05-11)
Sources/CSQLite/ (0, 2018-05-11)
Sources/CSQLite/include/ (0, 2018-05-11)
Sources/CSQLite/include/sqlite.h (467636, 2018-05-11)
Sources/CSQLite/module.map (71, 2018-05-11)
Sources/CSQLite/sqlite.c (6596622, 2018-05-11)
Sources/Swifter/ (0, 2018-05-11)
Sources/Swifter/App.swift (1555, 2018-05-11)
Sources/Swifter/DemoServer.swift (5880, 2018-05-11)
Sources/Swifter/Files.swift (2553, 2018-05-11)
Sources/Swifter/HttpParser.swift (2436, 2018-05-11)
Sources/Swifter/HttpRequest.swift (6070, 2018-05-11)
Sources/Swifter/HttpResponse.swift (6271, 2018-05-11)
Sources/Swifter/HttpRouter.swift (5068, 2018-05-11)
Sources/Swifter/HttpServer.swift (3525, 2018-05-11)
Sources/Swifter/HttpServerIO.swift (5295, 2018-05-11)
Sources/Swifter/JSON.swift (2555, 2018-05-11)
Sources/Swifter/Process.swift (1009, 2018-05-11)
Sources/Swifter/Reflection.swift (5284, 2018-05-11)
Sources/Swifter/SQLite.swift (4951, 2018-05-11)
Sources/Swifter/Scopes.swift (32265, 2018-05-11)
Sources/Swifter/Socket+File.swift (1493, 2018-05-11)
Sources/Swifter/Socket+Server.swift (4555, 2018-05-11)
Sources/Swifter/Socket.swift (6076, 2018-05-11)
Sources/Swifter/String+BASE64.swift (1576, 2018-05-11)
Sources/Swifter/String+File.swift (4145, 2018-05-11)
Sources/Swifter/String+Misc.swift (3572, 2018-05-11)
Sources/Swifter/WebSockets.swift (6012, 2018-05-11)
Sources/TLS/ (0, 2018-05-11)
Sources/TLS/AES128.swift (11261, 2018-05-11)
Sources/TLS/BigNum.swift (7692, 2018-05-11)
Sources/TLS/DER.swift (4486, 2018-05-11)
Sources/TLS/HEX.swift (1116, 2018-05-11)
Sources/TLS/HMAC.swift (2016, 2018-05-11)
Sources/TLS/MD5.swift (4376, 2018-05-11)
... ...

![Logo](https://dl.dropboxusercontent.com/u/858551/httpswift_logo.png) ### What is Swifter? Tiny http server engine written in Swift ( https://developer.apple.com/swift/ ) programming language. ![Platform](https://img.shields.io/badge/Platform-Linux%20&%20OSX-4BC51D.svg?style=flat) ![Swift](https://img.shields.io/badge/Swift-2.2/3.0--preview--1-4BC51D.svg?style=flat) ![Protocols](https://img.shields.io/badge/Protocols-HTTP%201.1%20&%20WebSockets-4BC51D.svg?style=flat) [![CocoaPods](https://img.shields.io/cocoapods/v/Swifter.svg?style=flat)](https://github.com/CocoaPods/Specs/tree/c53b984dfc6dd421d8344c21225920a20e91373d/Specs/Swifter) [![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Slack](https://img.shields.io/badge/Slack-Join%20%23general-ff6666.svg?style=flat)](https://swifterteam.slack.com/messages/general/) ### How to start? ```swift let server = HttpServer() server["/hello"] = { .OK(.Html("You asked for " + $0.url)) } server.start() ``` ### How to share files? ```swift let server = HttpServer() server["/desktop/:path"] = HttpHandlers.shareFilesFromDirectory("/Users/me/Desktop") server.start() ``` ### How to HTML ? ```swift let server = HttpServer() server["/my_html"] = HttpHandlers.scopes { html { body { h1 { inner = "hello" } } } } server.start() ``` ### How to redirect? ```swift let server = HttpServer() server["/redirect"] = { request in return .MovedPermanently("http://www.google.com") } server.start() ``` ### CocoaPods? Yes. ``` use_frameworks! pod 'Swifter', '~> 1.1.3' ``` ### Carthage? Also yes. ``` github "httpswift/swifter" == 1.1.3 ```

近期下载者

相关文件


收藏者