Skip to content

taimos/HTTPUtils

Repository files navigation

httputils

HTTP Utilities

Build Status

Setup

<dependency>
    <groupId>de.taimos</groupId>
    <artifactId>httputils</artifactId>
    <version>someversion</version>
</dependency>

Usage

try(final HTTPResponse response = WS.url("https://www.google.de/").get()) {
    response.getStatus(); // Get status code
    response.getResponseAsString(); // Get response body
}