UNPKG

1.86 kBTypeScriptView Raw
1/**
2 * -------------------------------------------------------------------------------------------
3 * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
4 * See License in the project root for license information.
5 * -------------------------------------------------------------------------------------------
6 */
7/**
8 * Class representing a successful file upload result
9 */
10export declare class UploadResult {
11 /**
12 * @private
13 * Location value looked up in the response header
14 */
15 private _location;
16 /**
17 * @private
18 * Response body of the final raw response
19 */
20 private _responseBody;
21 /**
22 * @public
23 * Get of the location value.
24 * Location value is looked up in the response header
25 */
26 get location(): string;
27 /**
28 * @public
29 * Set the location value
30 * Location value is looked up in the response header
31 */
32 set location(location: string);
33 /**
34 * @public
35 * Get The response body from the completed upload response
36 */
37 get responseBody(): unknown;
38 /**
39 * @public
40 * Set the response body from the completed upload response
41 */
42 set responseBody(responseBody: unknown);
43 /**
44 * @public
45 * @param {responseBody} responsebody - The response body from the completed upload response
46 * @param {location} location - The location value from the headers from the completed upload response
47 */
48 constructor(responseBody: unknown, location: string);
49 /**
50 * @public
51 * @param {responseBody} responseBody - The response body from the completed upload response
52 * @param {responseHeaders} responseHeaders - The headers from the completed upload response
53 */
54 static CreateUploadResult(responseBody?: unknown, responseHeaders?: Headers): UploadResult;
55}