Skip to content

Packaged

Latest

Choose a tag to compare

@Manchick0 Manchick0 released this 25 Nov 19:31
· 1 commit to master since this release

Packaged 1.0

The first-ever release of Packaged. Introduces most essential features, such as the Packaged class itself, as well as the Response, and the Request classes.

The Packaged class provides static methods and is therefore the entry point of any app that uses packaged. Use it as such:

public static void main(String[] args) {
    var response = Packaged.fetch("https://jsonplaceholder.typicode.com/todos/1", Request.method("GET").acceptJson()).join();
    if (response.ok) {
        System.out.println(response);
    } else {
        System.err.printf("%s: %s%n", response.status, response.statusText);
    }
}