Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 471 Bytes

README.md

File metadata and controls

20 lines (11 loc) · 471 Bytes

bayou.io

Async http server & client for Java

For more information, see http://bayou.io

HttpServer

    HttpHandler handler = request -> HttpResponse.text(200, "Hello World");

    HttpServer server = new HttpServer(handler);
    server.conf().trafficDump(System.out::print);
    server.start();

HttpClient

    HttpClient client = new HttpClient();
    
    Async<HttpResponse> asyncRes = client.doGet( "https://example.com" );