2018-06-21 20:45:51 +03:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
// Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
|
2018-07-10 00:26:56 +03:00
|
|
|
import { Mapper } from "./serializer";
|
|
|
|
|
2018-06-21 20:45:51 +03:00
|
|
|
/**
|
|
|
|
* An OperationResponse that can be returned from an operation request for a single status code.
|
|
|
|
*/
|
|
|
|
export interface OperationResponse {
|
|
|
|
/**
|
|
|
|
* The mapper that will be used to deserialize the response headers.
|
|
|
|
*/
|
|
|
|
headersMapper?: Mapper;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The mapper that will be used to deserialize the response body.
|
|
|
|
*/
|
|
|
|
bodyMapper?: Mapper;
|
2021-02-02 04:54:34 +03:00
|
|
|
}
|