All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.example.http.hello.OpensslHTTPsServer Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package com.firefly.example.http.hello;

import com.firefly.$;

/**
 * @author Pengtao Qiu
 */
public class OpensslHTTPsServer {
    public static void main(String[] args) {
        $.httpsServer()
         .router().get("/").handler(ctx -> ctx.end("hello world!"))
         .listen("localhost", 8081);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy