(lastModified string)
| 267 | } |
| 268 | |
| 269 | func parseRFC7231Time(lastModified string) (time.Time, error) { |
| 270 | return parseTime(lastModified, rfc822TimeFormat, rfc822TimeFormatSingleDigitDay, rfc822TimeFormatSingleDigitDayTwoDigitYear) |
| 271 | } |
| 272 | |
| 273 | // ToObjectInfo converts http header values into ObjectInfo type, |
| 274 | // extracts metadata and fills in all the necessary fields in ObjectInfo. |