interface Call<T : Any!> : Cloneable
An invocation of a Retrofit method that sends a request to a webserver and returns a response. Each call yields its own HTTP request and response pair. Use |
|
interface CallAdapter<R : Any!, T : Any!>
Adapts a |
|
interface Callback<T : Any!>
Communicates responses from a server or offline requests. One and only one method will be invoked in response to a given request. |
|
interface Converter<F : Any!, T : Any!>
Convert objects to and from their representation in HTTP. Instances are created by which is installed into the |
|
class Invocation
A single invocation of a Retrofit service interface method. This class captures both the method that was called and the arguments to the method. |
|
class Response<T : Any!>
An HTTP response. |
|
class Retrofit
Retrofit adapts a Java interface to HTTP calls by using annotations on the declared methods to define how requests are made. Create instances using the builder and pass your interface to |
class SkipCallbackExecutor
Change the behavior of a This annotation can also be used when a CallAdapter.Factory explicitly delegates to the built-in factory for Call via Retrofit#nextCallAdapter(CallAdapter.Factory, * Type, Annotation[]) in order for the returned Call to skip the executor. (Note: by default, a Call supplied directly to a CallAdapter will already skip the callback executor. The annotation is only useful when looking up the built-in adapter.)
|
open class HttpException : RuntimeException
Exception for an unexpected, non-2xx HTTP response. |
suspend fun <T : Any> Call<T>.await(): T |
|
suspend fun <T> Call<T>.awaitResponse(): Response<T> |
|
fun <T> Retrofit.create(): T |