aboutsummaryrefslogtreecommitdiff
path: root/headers.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-02-04 23:29:09 +0100
committerStefan Majewsky <majewsky@gmx.net>2018-02-04 23:29:09 +0100
commitfafac750baa70812432020784cc5ba2cc23224cc (patch)
tree2b0100470a44a7db1550fc7989257c35c5ac808d /headers.go
parent698cd6aaf4e4fd235d5af904376c89f8faf177f7 (diff)
downloadgo-schwift-fafac750baa70812432020784cc5ba2cc23224cc.tar.gz
add Container
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