aristidb / aws

Amazon Web Services for Haskell
BSD 3-Clause "New" or "Revised" License
238 stars 107 forks source link

add etag to PutObjectResponse #258

Closed joeyh closed 5 years ago

joeyh commented 5 years ago

PUT Object includes an ETag header that is an md5sum of the content that S3 has stored. The docs suggest this can be used to eg verify that the object was not corrupted in transit. I suggest adding the ETag to PutObjectResponse.

(Aside from this oversight, ETags seem already well supported in this library. Aws.S3.Commands.Multipart already includes etags in its responses, and Aws.S3.Commands.GetObject supports etag preconditions with goIfMatch and goIfNoneMatch.)