Compare commits
18 Commits
2db85de88d
...
v0.0.12
| Author | SHA1 | Date | |
|---|---|---|---|
| a1b6bf62df | |||
|
|
718194e3f1 | ||
| 21c19af696 | |||
| fc04d50d0f | |||
| 515387dd32 | |||
| 9fb406427f | |||
| 386fded0a3 | |||
| 88fdc79c82 | |||
| 571ed377a8 | |||
| 6b84af1f16 | |||
| 4302084b95 | |||
| 4f8054dc94 | |||
| 5c1e1ee52c | |||
| 01074e1ac2 | |||
| 1b60210c06 | |||
| 2290ac5ecf | |||
| 6101e8d462 | |||
| aaea3a218b |
16
pom.xml
16
pom.xml
@@ -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>
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user