aboutsummaryrefslogtreecommitdiff
path: root/headers.go
diff options
context:
space:
mode:
Diffstat (limited to 'headers.go')
-rw-r--r--headers.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/headers.go b/headers.go
index 3473ac0..7f8cfd1 100644
--- a/headers.go
+++ b/headers.go
@@ -64,6 +64,17 @@ func (a AccountHeaders) TempURLKey2() StringField {
}
}
+//ContainerHeaders contains the headers for an account. The Raw attribute
+//contains the original set of headers returned from a HEAD or GET request on
+//the account. The other attributes contain the parsed values of common
+//headers, as noted in the tags next to each field. Well-known metadata headers
+//can be accessed in a type-safe way using the methods on this type.
+type ContainerHeaders struct {
+ Metadata Metadata `schwift:"rw,X-Container-Meta-"`
+ Raw http.Header
+ //TODO map well-known headers
+}
+
////////////////////////////////////////////////////////////////////////////////
// field types