wangzhibo
2026-05-09 53418655c061ac26f66058253f39200aced1ab1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import type { FullOperationResponse } from "@azure/core-client";
import type { PipelineResponse } from "@azure/core-rest-pipeline";
import type { HttpHeadersLike, WebResourceLike } from "./util.js";
/**
 * Http Response that is compatible with the core-v1(core-http).
 */
export interface CompatResponse extends Omit<FullOperationResponse, "request" | "headers"> {
    /**
     * A description of a HTTP request to be made to a remote server.
     */
    request: WebResourceLike;
    /**
     * A collection of HTTP header key/value pairs.
     */
    headers: HttpHeadersLike;
}
/**
 * A helper to convert response objects from the new pipeline back to the old one.
 * @param response - A response object from core-client.
 * @returns A response compatible with `HttpOperationResponse` from core-http.
 */
export declare function toCompatResponse(response: FullOperationResponse, options?: {
    createProxy?: boolean;
}): CompatResponse;
/**
 * A helper to convert back to a PipelineResponse
 * @param compatResponse - A response compatible with `HttpOperationResponse` from core-http.
 */
export declare function toPipelineResponse(compatResponse: CompatResponse): PipelineResponse;
//# sourceMappingURL=response.d.ts.map