public final class HttpResponseDecoder extends Object
HttpResponse.| Constructor and Description |
|---|
HttpResponseDecoder(SwaggerMethodParser methodParser,
SerializerAdapter<?> serializer)
Creates an HttpResponseDecoder.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<HttpResponse> |
decode(HttpResponse response)
Asynchronously decodes an
HttpResponse, deserializing into a response or error value. |
public HttpResponseDecoder(SwaggerMethodParser methodParser, SerializerAdapter<?> serializer)
methodParser - metadata about the Swagger method used for decoding.serializer - the serializerpublic io.reactivex.Single<HttpResponse> decode(HttpResponse response)
HttpResponse, deserializing into a response or error value.response - the HttpResponseSingle containing either the decoded HttpResponse or an error/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/