diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2018-02-04 23:29:09 +0100 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2018-02-04 23:29:09 +0100 |
| commit | fafac750baa70812432020784cc5ba2cc23224cc (patch) | |
| tree | 2b0100470a44a7db1550fc7989257c35c5ac808d /headers.go | |
| parent | 698cd6aaf4e4fd235d5af904376c89f8faf177f7 (diff) | |
| download | go-schwift-fafac750baa70812432020784cc5ba2cc23224cc.tar.gz | |
add Container
Diffstat (limited to 'headers.go')
| -rw-r--r-- | headers.go | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |
