Skip to content

我有一个另外的实现方案,几乎不会增加什么理解成本,欢迎各位尝试并交流 https://github.com/uni-cstar/oknet #49

@uni-cstar

Description

@uni-cstar

GitHub:https://github.com/uni-cstar/oknet
This may be currently (2023/03) Retrofit (OkHttp) supports multiple BaseUrl and changes BaseUrl at runtime to achieve the simplest library;
At the same time, it may also be the simplest and most comprehensive library that supports global Header configuration implementation;
It does not conflict with Retrofit's @url method, that is, if @url specifies another baseurl, which has nothing to do with the globally configured domain name, then the globally configured baseurl and header will not have any impact on the interface.
这也许是目前(2023/03)Retrofit(OkHttp)支持多BaseUrl以及在运行时改变BaseUrl实现最简单的库;
同时也许也是支持全局Header配置实现最为简单、最为全面的库;
与Retrofit的@url方法不冲突,即如果@url指定的是其他baseurl,与全局配置的域名毫无关系,那么全局配置的baseurl和header不会对接口造成任何影响。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions