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


Based on Cocoa with Love article: "A simple, extensible HTTP server in Cocoa".

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.