1 | import { HttpOperationResponse } from "../httpOperationResponse";
|
2 | import { WebResourceLike } from "../webResource";
|
3 | import { BaseRequestPolicy, RequestPolicy, RequestPolicyFactory, RequestPolicyOptionsLike } from "./requestPolicy";
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export interface DeserializationContentTypes {
|
9 | |
10 |
|
11 |
|
12 |
|
13 | json?: string[];
|
14 | |
15 |
|
16 |
|
17 |
|
18 | xml?: string[];
|
19 | }
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | export declare function deserializationPolicy(deserializationContentTypes?: DeserializationContentTypes): RequestPolicyFactory;
|
25 | export declare const defaultJsonContentTypes: string[];
|
26 | export declare const defaultXmlContentTypes: string[];
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export declare class DeserializationPolicy extends BaseRequestPolicy {
|
32 | readonly jsonContentTypes: string[];
|
33 | readonly xmlContentTypes: string[];
|
34 | constructor(nextPolicy: RequestPolicy, deserializationContentTypes: DeserializationContentTypes | undefined, options: RequestPolicyOptionsLike);
|
35 | sendRequest(request: WebResourceLike): Promise<HttpOperationResponse>;
|
36 | }
|
37 | export declare function deserializeResponseBody(jsonContentTypes: string[], xmlContentTypes: string[], response: HttpOperationResponse): Promise<HttpOperationResponse>;
|
38 | //# sourceMappingURL=deserializationPolicy.d.ts.map |
\ | No newline at end of file |