All Projects → BiAtoms → Http.swift

BiAtoms / Http.swift

Licence: mit
A tiny HTTP server engine written in swift.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Http.swift

Predicateflow
Write amazing, strong-typed and easy-to-read NSPredicate.
Stars: ✭ 98 (-1.01%)
Mutual labels:  tvos, cocoapods
Swiftysound
SwiftySound is a simple library that lets you play sounds with a single line of code.
Stars: ✭ 995 (+905.05%)
Mutual labels:  tvos, cocoapods
Go Bootstrap
Easy way to bootstrap a web server in Go (Routing|Middleware|Https)
Stars: ✭ 27 (-72.73%)
Mutual labels:  server, http-server
Jerrymouse
A scalable java servlet container base on reactor
Stars: ✭ 27 (-72.73%)
Mutual labels:  server, http-server
Fortjs
Component based MVC web framework for nodejs targeting good code structures & modularity.
Stars: ✭ 44 (-55.56%)
Mutual labels:  server, http-server
Vtacknowledgementsviewcontroller
Acknowledgements screen displaying a list of licenses, for example from CocoaPods dependencies.
Stars: ✭ 863 (+771.72%)
Mutual labels:  tvos, cocoapods
Sica
🦌 Simple Interface Core Animation. Run type-safe animation sequencially or parallelly
Stars: ✭ 980 (+889.9%)
Mutual labels:  tvos, cocoapods
Urlembeddedview
URLEmbeddedView automatically caches the object that is confirmed the Open Graph Protocol.
Stars: ✭ 633 (+539.39%)
Mutual labels:  tvos, cocoapods
Fugen
Command line tool for exporting resources and generating code from your Figma files
Stars: ✭ 41 (-58.59%)
Mutual labels:  tvos, cocoapods
Fontblaster
Programmatically load custom fonts into your iOS and tvOS app.
Stars: ✭ 1,000 (+910.1%)
Mutual labels:  tvos, cocoapods
Iodine
iodine - HTTP / WebSockets Server for Ruby with Pub/Sub support
Stars: ✭ 720 (+627.27%)
Mutual labels:  server, http-server
Swiftlinkpreview
It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.
Stars: ✭ 1,216 (+1128.28%)
Mutual labels:  tvos, cocoapods
Open Source Ios Apps
📱 Collaborative List of Open-Source iOS Apps
Stars: ✭ 28,826 (+29017.17%)
Mutual labels:  tvos, cocoapods
Request.swift
A tiny HTTP client written in swift. URLSession alternative
Stars: ✭ 14 (-85.86%)
Mutual labels:  tvos, cocoapods
Guitar
A Cross-Platform String and Regular Expression Library written in Swift.
Stars: ✭ 641 (+547.47%)
Mutual labels:  tvos, cocoapods
Centeredcollectionview
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift
Stars: ✭ 965 (+874.75%)
Mutual labels:  tvos, cocoapods
Xcake
🍰 Describe Xcode projects in a human readable format and (re)generate one on demand.
Stars: ✭ 549 (+454.55%)
Mutual labels:  tvos, cocoapods
Gradientview
Easily use gradients in UIKit for iOS & tvOS
Stars: ✭ 610 (+516.16%)
Mutual labels:  tvos, cocoapods
Nodemcu Espress
Ultra-Lightweight and modular Node.js express like http server for NodeMCU. web - ESP8266
Stars: ✭ 39 (-60.61%)
Mutual labels:  server, http-server
Threadly
Type-safe thread-local storage in Swift
Stars: ✭ 58 (-41.41%)
Mutual labels:  tvos, cocoapods

Platform Linux Platform Cocoapods Compatible Carthage Compatible License Build Status - Master

Http.swift

A tiny HTTP server engine written in swift.

Features

  • SSL/TLS support
  • Error handling
  • Global middlewares
  • Route middlewares
  • Route grouping
  • File serving
  • Directory browsing
  • Request parameters
  • Works in Linux, iOS, macOS and tvOS
import HttpSwift
// ...
let server = Server()
server.get("/hello/{id}") { request in
    print(request.queryParams["state"])
    return .ok(request.routeParams["id"]!) 
}

try server.run() //go to http://localhost:8080/hello/1?state=active in the browser

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate Http.swift into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
target '<Your Target Name>' do
  pod 'Http.swift', '~> 2.2.0'
end

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Http.swift into your Xcode project using Carthage, specify it in your Cartfile:

github "BiAtoms/Http.swift" ~> 2.2.0

Run carthage update to build the framework and drag the built HttpSwift.framework into your Xcode project.

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but Http.swift does support its use on supported platforms.

Once you have your Swift package set up, adding Http.swift as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/BiAtoms/Http.swift.git", from: "2.2.0")
]

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].