This file contains hidden or 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
| import com.sun.net.httpserver.HttpServer | |
| import java.io.PrintWriter | |
| import java.net.InetSocketAddress | |
| /** | |
| * Minimal embedded HTTP server in Kotlin using Java built in HttpServer | |
| */ | |
| fun main(args: Array<String>) { | |
| HttpServer.create(InetSocketAddress(8080), 0).apply { |