| Package | Description |
|---|---|
| com.microsoft.rest |
The package contains the runtime classes required for AutoRest generated
clients to compile and function.
|
| Modifier and Type | Method and Description |
|---|---|
<THeader> ServiceResponseWithHeaders<T,THeader> |
ServiceResponseBuilder.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> |
ServiceResponseBuilder.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.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,V> ServiceCall<T> |
ServiceCall.createWithHeaders(rx.Observable<ServiceResponseWithHeaders<T,V>> observable,
ServiceCallback<T> callback)
Creates a ServiceCall from an observable and a callback for a header response.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/