Package com.turbomanage.httpclient

Examples of com.turbomanage.httpclient.HttpResponse


    @Test
    public void handle()
    {
        BasicHttpClient client = new BasicHttpClient("http://localhost:" + PORT);
        HttpResponse httpResponse = client.get("/heyo", null);
        System.out.println(httpResponse.getStatus());
        String bodyAsString = httpResponse.getBodyAsString();
        System.out.println(bodyAsString);
    }
View Full Code Here

TOP

Related Classes of com.turbomanage.httpclient.HttpResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.