Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get object metadata #9

Closed
koenedaele opened this issue Oct 29, 2015 · 2 comments
Closed

Get object metadata #9

koenedaele opened this issue Oct 29, 2015 · 2 comments
Assignees
Milestone

Comments

@koenedaele
Copy link
Member

Currently, you always need to download an object to find out more about it. To make it possible to save some bandwith, we will implement the HEAD method for objects.

@koenedaele koenedaele self-assigned this Oct 29, 2015
@koenedaele koenedaele added this to the 0.2.0 milestone Oct 29, 2015
koenedaele pushed a commit that referenced this issue Oct 30, 2015
@koenedaele koenedaele assigned BartSaelen and unassigned koenedaele Oct 30, 2015
@koenedaele
Copy link
Member Author

Please implement this in branch head_for_objects.

Basic idea is to return the Content-Type and Content-Length without actually sending the object itself. This allows a client to check a file's size without having to download the entire file all the time. At this moment i'm not sure if this needs to be new methods on the Store interface or just the server getting the object and only sending the metadata. To keep things simple I would suggest that for now we just get the object from the store, but don't send it.

koenedaele pushed a commit that referenced this issue Nov 3, 2015
* head_for_objects:
  Write docs for HEAD service. Refs #9
@koenedaele
Copy link
Member Author

Doesn't really need to be implemented since Pyramid automatically adds a HEAD method to a resource that returns the same headers a GET, but without the body. While this still requires Augeias to fetch the entire object from storage, it does not require sending the object over the wire. So, that's a plus.

koenedaele pushed a commit that referenced this issue Nov 3, 2015
* master: (27 commits)
  Remove OE configs. Refs #8
  No sense in having a production.ini
  Update History.
  Doc fixes.
  Bump stuff. Refs #6
  First version of scaffold. Refs #6
  Write docs for HEAD service. Refs #9
  Fix docs in a few places.
  Update setup
  Prepare for release
  Add release notes
  Add coveralls support.
  Update coveralls badge
  Update README
  Update docs.
  More doc updates.
  Update History
  Set docs to 0.1.0
  Some doc updates.
  validationfailure to 400
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants