| Interface | Description |
|---|---|
| Callback<T> |
Communicates responses from a server or offline requests.
|
| Endpoint |
Represents an API endpoint URL and associated name.
|
| ErrorHandler |
A hook allowing clients to customize
response exceptions. |
| Profiler<T> |
A hook allowing clients to log HTTP method times and response status codes.
|
| RequestInterceptor |
Intercept every request before it is executed in order to add additional data.
|
| RequestInterceptor.RequestFacade | |
| RestAdapter.Log |
Simple logging abstraction for debug messages.
|
| Class | Description |
|---|---|
| Endpoints |
Static factory methods for creating
Endpoint instances. |
| Profiler.RequestInformation |
Information about the HTTP request.
|
| ResponseCallback |
An extension of
Callback which returns only Response object
in Callback.success(Object, retrofit.client.Response) method. |
| RestAdapter |
Adapts a Java interface to a REST API.
|
| RestAdapter.Builder |
Build a new
RestAdapter. |
| Enum | Description |
|---|---|
| RestAdapter.LogLevel |
Controls the level of logging.
|
| Exception | Description |
|---|---|
| RetrofitError |
public interface GitHubService {
@GET("/users/{user}/repos")
List<Repo> listRepos(@Path("user") String user);
}
Copyright © 2014 Square, Inc.. All Rights Reserved.