Skip to content
The simplest http swift server
Swift
Branch: master
Clone or download
grzegorzleszek removing protocol extension;
rename delegate to router;
Latest commit 53fa7b6 Nov 20, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
HTTPSwiftServer.xcodeproj
HTTPSwiftServer
.gitignore
README.md

README.md

HTTPSwiftServer

Based on Cocoa with Love article: "A simple, extensible HTTP server in Cocoa". http://www.cocoawithlove.com/2009/07/simple-extensible-http-server-in-cocoa.html

This is a Swift version of HTTP server that is doing following:

  • Opening a socket for listening
  • Receiving incoming connections
  • Handling response (returning 501)

Getting Started

There are two options to run HTTP Swift Server:

  • Xcode: Open Xcode and run the project.
  • Terminal: Run swift main.swift. This will execute Swift code. Make sure that Swift toolchain is added to the PATH.
You can’t perform that action at this time.