Class OkHttpClientDemo

java.lang.Object
org.newsclub.net.unix.demo.okhttp.OkHttpClientDemo

public class OkHttpClientDemo extends Object
Connects to /tmp/junixsocket-http-server.sock and performs an http request over that socket, using the OkHttp HTTP client library. If that socket is bound by NanoHttpdServerDemo, the expected output is "Hello world".
Author:
Christian Kohlschütter
See Also:
  • Constructor Details

    • OkHttpClientDemo

      public OkHttpClientDemo()
  • Method Details