Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] how to shut down jetty httpclient (version 9.1)

hi,

I can write one simple code to try http client, however, when the program done, it is not exit.

HttpClient client = new HttpClient();
client.start();
ContentResponse x = client.GET("http://www.google.com");
System.out.println(x.getContentAsString());


I look thought the documentation and can't find the way how the client is shutdown.

Any idea ?


kiwi

Back to the top