From fafac750baa70812432020784cc5ba2cc23224cc Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sun, 4 Feb 2018 23:29:09 +0100 Subject: add Container --- headers.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'headers.go') 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 -- cgit v1.2.3