@ParametersAreNonnullByDefault
See: Description
| Interface | Description |
|---|---|
| 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.
|
| Class | Description |
|---|---|
| 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. |
| 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. |
| Exception | Description |
|---|---|
| HttpException |
Exception for an unexpected, non-2xx HTTP response.
|
public interface GitHubService {
@GET("/users/{user}/repos")
List<Repo> listRepos(@Path("user") String user);
}
Copyright © 2017 Square, Inc.. All rights reserved.