UUID

HTTP 请求

加密/解密

Common 常用模块

Reflection 反射

Input/Output 输入/输出

GET请求工具

提供多种响应处理方式的HTTP GET请求方法。

功能特性

使用示例

// 简单GET请求
String html = Get.simpleGET("https://example.com");

// 返回JSON的API请求
Map<String, Object> json = Get.api("https://api.example.com/data");

// 下载文件
String filePath = Get.download("https://example.com/file.pdf", "/downloads");

POST请求工具

提供多种载荷类型的HTTP POST和PUT请求方法。

功能特性

使用示例

// 带表单数据的简单POST请求
ResponseEntity response = Post.post("https://api.example.com", Map.of("key", "value"));

// POST JSON API请求
Map<String, Object> json = Post.api("https://api.example.com/data", Map.of("id", 123));

// 多部分文件上传
ResponseEntity uploadResp = Post.multiPOST("https://api.example.com/upload", 
    Map.of("file", new File("document.pdf")));

DELETE请求工具

提供HTTP DELETE请求方法。

功能特性

使用示例

// 简单DELETE请求
ResponseEntity response = Delete.del("https://api.example.com/resource/123");

// 返回JSON的DELETE API请求
Map<String, Object> json = Delete.api("https://api.example.com/resource/123");

HEAD请求工具

提供HTTP HEAD请求和资源检查方法。

功能特性

使用示例

// 检查资源是否存在
boolean exists = !Head.is404("https://example.com/resource");

// 获取文件大小
long size = Head.getFileSize("https://example.com/file.pdf");

// 获取重定向地址
String redirectUrl = Head.get302redirect("https://example.com/old");