Skip to content

Add response headers to head results - #46

Open
toots wants to merge 1 commit into
andersfugmann:mainfrom
toots:main
Open

Add response headers to head results#46
toots wants to merge 1 commit into
andersfugmann:mainfrom
toots:main

Conversation

@toots

@toots toots commented Jun 21, 2026

Copy link
Copy Markdown

head now returns the object's headers as content.response_headers, with find_header to look one up without minding the case the server chose, which covers content-type and anything else the API does not model.

ls parses an xml listing that carries no per-object headers, so the field is None there rather than an empty list.

@andersfugmann andersfugmann left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good. I have a couple of questions and suggestions that I'd like your comments on.

Comment thread aws-s3/s3.ml Outdated
Comment thread aws-s3/s3.ml Outdated
Comment thread aws-s3/s3.mli Outdated
head now returns the object's headers as content.response_headers, with find_header to look one up without minding the case the server chose, which covers content-type and anything else the API does not model.

ls parses an xml listing that carries no per-object headers, so the field is None there rather than an empty list.
@toots toots changed the title Add content_type and full response_headers when available. Add response headers to head results Aug 10, 2026
@toots

toots commented Aug 10, 2026

Copy link
Copy Markdown
Author

Comments addressed @andersfugmann

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants