/
zc_response_helpers.go
35 lines (29 loc) · 1.16 KB
/
zc_response_helpers.go
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
31
32
33
34
35
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package blob
// GetHTTPHeaders returns the user-modifiable properties for this blob.
func (bgpr BlobGetPropertiesResponse) GetHTTPHeaders() BlobHTTPHeaders {
return BlobHTTPHeaders{
BlobContentType: bgpr.ContentType,
BlobContentEncoding: bgpr.ContentEncoding,
BlobContentLanguage: bgpr.ContentLanguage,
BlobContentDisposition: bgpr.ContentDisposition,
BlobCacheControl: bgpr.CacheControl,
BlobContentMD5: bgpr.ContentMD5,
}
}
///////////////////////////////////////////////////////////////////////////////
// GetHTTPHeaders returns the user-modifiable properties for this blob.
func (r BlobDownloadResponse) GetHTTPHeaders() BlobHTTPHeaders {
return BlobHTTPHeaders{
BlobContentType: r.ContentType,
BlobContentEncoding: r.ContentEncoding,
BlobContentLanguage: r.ContentLanguage,
BlobContentDisposition: r.ContentDisposition,
BlobCacheControl: r.CacheControl,
BlobContentMD5: r.ContentMD5,
}
}
///////////////////////////////////////////////////////////////////////////////