@EverythingIsNonNull
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. |
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 . |
Exception | Description |
---|---|
HttpException |
Exception for an unexpected, non-2xx HTTP response.
|
Annotation Type | Description |
---|---|
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); }
Copyright © 2020 Square, Inc.. All rights reserved.