Skip to main content

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

How about:
client.stop();
http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/client/HttpClient.html


On Tue, Nov 26, 2013 at 12:42 PM, Kiwi de coder <kiwionly@xxxxxxxxx> wrote:
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

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top