(resp *http.Response)
| 200 | } |
| 201 | |
| 202 | func (o *ObjectAttributes) parseResponse(resp *http.Response) (err error) { |
| 203 | mod, err := parseRFC7231Time(resp.Header.Get("Last-Modified")) |
| 204 | if err != nil { |
| 205 | return err |
| 206 | } |
| 207 | o.LastModified = mod |
| 208 | o.VersionID = resp.Header.Get(amzVersionID) |
| 209 | |
| 210 | response := new(ObjectAttributesResponse) |
| 211 | if err := xml.NewDecoder(resp.Body).Decode(response); err != nil { |
| 212 | return err |
| 213 | } |
| 214 | o.ObjectAttributesResponse = *response |
| 215 | |
| 216 | return err |
| 217 | } |
| 218 | |
| 219 | // GetObjectAttributes API combines HeadObject and ListParts. |
| 220 | // More details on usage can be found in the documentation for ObjectAttributesOptions{} |
no test coverage detected