Repository navigation
Releases: Manchick0/Packaged
Releases · Manchick0/Packaged
Release list
Packaged
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);
}
}