1 Commits

Author SHA1 Message Date
Timi
718194e3f1 v0.0.12
All checks were successful
CI/CD / build-deploy (pull_request) Successful in 12s
2026-06-30 15:40:50 +08:00
2 changed files with 19 additions and 4 deletions

16
pom.xml
View File

@@ -6,7 +6,7 @@
<groupId>com.imyeyu.network</groupId> <groupId>com.imyeyu.network</groupId>
<artifactId>timi-network</artifactId> <artifactId>timi-network</artifactId>
<version>0.0.11</version> <version>0.0.12</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<properties> <properties>
@@ -18,6 +18,20 @@
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.46</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId> <artifactId>maven-deploy-plugin</artifactId>

View File

@@ -1,7 +1,5 @@
package com.imyeyu.network; package com.imyeyu.network;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import org.apache.hc.client5.http.fluent.Request; import org.apache.hc.client5.http.fluent.Request;
import org.apache.hc.core5.http.HttpEntity; import org.apache.hc.core5.http.HttpEntity;
import org.apache.hc.core5.util.Timeout; import org.apache.hc.core5.util.Timeout;
@@ -13,11 +11,14 @@ import java.io.InputStream;
* @author 夜雨 * @author 夜雨
* @since 2025-07-15 14:27 * @since 2025-07-15 14:27
*/ */
@AllArgsConstructor(access = AccessLevel.PROTECTED)
public class CommonRequest { public class CommonRequest {
protected final Request request; protected final Request request;
protected CommonRequest(Request request) {
this.request = request;
}
public static CommonRequest wrap(Request request) { public static CommonRequest wrap(Request request) {
return new CommonRequest(request); return new CommonRequest(request);
} }