Skip to content

Commit

Permalink
1.优化通过请求头获取文件名的逻辑。
Browse files Browse the repository at this point in the history
2.新增动态url的拦截器和相关注解。
  • Loading branch information
xiazunyang committed Jun 22, 2022
1 parent 02cff98 commit e58e133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ implementation 'cn.numeron:http:latest_version'
* 示例:
```kotlin
/** 此接口下所有的方法均通过指定的url地址访问,优先级低于方法上的注解 */
@Url("http://192.168.1.111:8081/")
interface LoginApi {

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

}
```
```

0 comments on commit e58e133

Please sign in to comment.