| Package | Description |
|---|---|
| com.microsoft.rest |
The package contains the runtime classes required for AutoRest generated
clients to compile and function.
|
| com.microsoft.rest.protocol |
The package contains classes that interfaces defining the behaviors
of the necessary components of a Rest Client.
|
| Modifier and Type | Method and Description |
|---|---|
<THeader> ServiceResponseWithHeaders<T,THeader> |
ServiceResponseBuilder.buildEmptyWithHeaders(retrofit2.Response<Void> response,
Class<THeader> headerType) |
<THeader> ServiceResponseWithHeaders<T,THeader> |
ServiceResponseBuilder.buildWithHeaders(retrofit2.Response<okhttp3.ResponseBody> response,
Class<THeader> headerType) |
| Modifier and Type | Method and Description |
|---|---|
static <T,V> ServiceFuture<T> |
ServiceFuture.fromHeaderResponse(rx.Observable<ServiceResponseWithHeaders<T,V>> observable,
ServiceCallback<T> callback)
Creates a ServiceCall from an observable and a callback for a header response.
|
| Modifier and Type | Method and Description |
|---|---|
<THeader> ServiceResponseWithHeaders<T,THeader> |
ResponseBuilder.buildEmptyWithHeaders(retrofit2.Response<Void> response,
Class<THeader> headerType)
Build a ServiceResponseWithHeaders instance from a REST call response, a header
in JSON format, and a possible error, which does not have a response body.
|
<THeader> ServiceResponseWithHeaders<T,THeader> |
ResponseBuilder.buildWithHeaders(retrofit2.Response<okhttp3.ResponseBody> response,
Class<THeader> headerType)
Build a ServiceResponseWithHeaders instance from a REST call response, a header
in JSON format, and a possible error.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/