Skip to content

Commit e58e133

Browse files
committed
1.优化通过请求头获取文件名的逻辑。
2.新增动态url的拦截器和相关注解。
1 parent 02cff98 commit e58e133

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ implementation 'cn.numeron:http:latest_version'
4949
* 示例:
5050
```kotlin
5151
/** 此接口下所有的方法均通过指定的url地址访问,优先级低于方法上的注解 */
52+
@Url("http://192.168.1.111:8081/")
5253
interface LoginApi {
5354

5455
/** 指定此方法在调用时,访问服务器的8080端口 */
@@ -62,4 +63,4 @@ implementation 'cn.numeron:http:latest_version'
6263
suspend fun logout(@Body payload: LoginPayload): LogoutResponse
6364

6465
}
65-
```
66+
```

0 commit comments

Comments
 (0)