| 接口 | 说明 |
|---|---|
| Call<T> |
An invocation of a Retrofit method that sends a request to a webserver and returns a response.
|
| CallAdapter<R,T> | |
| Callback<T> |
Communicates responses from a server or offline requests.
|
| Converter<F,T> |
Convert objects to and from their representation in HTTP.
|
| ParamProvider |
Created by ZhangZhenli on 2015/11/25.
|
| 类 | 说明 |
|---|---|
| CallAdapter.Factory |
Creates
CallAdapter instances based on the return type of the service interface methods. |
| Converter.Factory |
Creates
Converter instances based on a type and target usage. |
| Invocation |
A single invocation of a Retrofit service interface method.
|
| Response<T> |
An HTTP response.
|
| Retrofit |
Retrofit adapts a Java interface to HTTP calls by using annotations on the declared methods to
define how requests are made.
|
| Retrofit.Builder |
Build a new
Retrofit. |
| ServiceParser |
| 异常错误 | 说明 |
|---|---|
| HttpException |
Exception for an unexpected, non-2xx HTTP response.
|
| 注释类型 | 说明 |
|---|---|
| SkipCallbackExecutor |
Change the behavior of a
Call<BodyType> return type to not use the callback executor for invoking the onResponse or onFailure methods. |
public interface GitHubService {
@GET("/users/{user}/repos")
List<Repo> listRepos(@Path("user") String user);
}