mirror of
https://github.com/TeamPiped/reqwest4j.git
synced 2024-08-14 23:54:39 +00:00
Fix formatting.
This commit is contained in:
parent
70b4734f3d
commit
b7b9c918a8
1 changed files with 5 additions and 2 deletions
|
@ -41,7 +41,10 @@ public class ReqwestUtils {
|
||||||
|
|
||||||
final var cl = ReqwestUtils.class.getClassLoader();
|
final var cl = ReqwestUtils.class.getClassLoader();
|
||||||
|
|
||||||
try (var stream = cl.getResourceAsStream("META-INF/natives/" + native_folder + "/" + arch + "/libreqwest" + extension); var fileOutputStream = new FileOutputStream(nativeFile)) {
|
try (
|
||||||
|
var stream = cl.getResourceAsStream("META-INF/natives/" + native_folder + "/" + arch + "/libreqwest" + extension);
|
||||||
|
var fileOutputStream = new FileOutputStream(nativeFile)
|
||||||
|
) {
|
||||||
stream.transferTo(fileOutputStream);
|
stream.transferTo(fileOutputStream);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
@ -53,6 +56,6 @@ public class ReqwestUtils {
|
||||||
public static native void init(String proxy);
|
public static native void init(String proxy);
|
||||||
|
|
||||||
public static native CompletableFuture<Response> fetch(String url, String method, byte[] body,
|
public static native CompletableFuture<Response> fetch(String url, String method, byte[] body,
|
||||||
Map<String, String> headers);
|
Map<String, String> headers);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue