private static String[] toArray(List<String> list) {
        return list != null ? list.toArray(new String[0]) : null;
    }
A simple http client for testing

@author Simon Thoresen Hult
@author bjorncs
container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/SimpleHttpClient.java