aboutsummaryrefslogtreecommitdiff
path: root/vendor/cloud.google.com/go/storage/reader.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/cloud.google.com/go/storage/reader.go')
-rw-r--r--vendor/cloud.google.com/go/storage/reader.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/cloud.google.com/go/storage/reader.go b/vendor/cloud.google.com/go/storage/reader.go
index aa103c1..c96ca8a 100644
--- a/vendor/cloud.google.com/go/storage/reader.go
+++ b/vendor/cloud.google.com/go/storage/reader.go
@@ -28,6 +28,7 @@ type Reader struct {
body io.ReadCloser
remain, size int64
contentType string
+ cacheControl string
checkCRC bool // should we check the CRC?
wantCRC uint32 // the CRC32c value the server sent in the header
gotCRC uint32 // running crc
@@ -72,3 +73,8 @@ func (r *Reader) Remain() int64 {
func (r *Reader) ContentType() string {
return r.contentType
}
+
+// CacheControl returns the cache control of the object.
+func (r *Reader) CacheControl() string {
+ return r.cacheControl
+}