1 | // Copyright (c) Microsoft Corporation. All rights reserved.
|
2 | // Licensed under the MIT License. See License.txt in the project root for license information.
|
3 | import { MapperType } from "./serializer";
|
4 | export function isStreamOperation(operationSpec) {
|
5 | var result = false;
|
6 | for (var statusCode in operationSpec.responses) {
|
7 | var operationResponse = operationSpec.responses[statusCode];
|
8 | if (operationResponse.bodyMapper &&
|
9 | operationResponse.bodyMapper.type.name === MapperType.Stream) {
|
10 | result = true;
|
11 | break;
|
12 | }
|
13 | }
|
14 | return result;
|
15 | }
|
16 | //# sourceMappingURL=operationSpec.js.map |
\ | No newline at end of file |