This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// An HTTP server that connects to the AltServer mail plugin | |
// on the local host and serves the anisette data in JSON form. | |
// | |
// Requires macOS 10.12+ and Swift 5.5+ | |
// | |
// Server usage: swift aniserve.swift -p <port:6969> -d <endpoint:"anisette"> | |
// | |
// Client usage: curl http://localhost:6969/anisette | |
// | |
import Foundation |