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

Test for object existence using head request. #102

Merged
merged 1 commit into from
Sep 5, 2013

Conversation

eliaslevy
Copy link
Contributor

Use the PB head option or an HTTP HEAD request.

Use the PB head option or an HTTP HEAD request.
true
rescue Riak::FailedRequest
rescue Riak::FailedRequest => e
raise e unless e.not_found?
Copy link
Contributor

Choose a reason for hiding this comment

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

Handling this exception correctly is excellent :)

@eliaslevy
Copy link
Contributor Author

@seancribbs ?

@eliaslevy
Copy link
Contributor Author

Buller?

@bkerley
Copy link
Contributor

bkerley commented Sep 4, 2013

Closing this; while it's applicable to HTTP users on 1.4 and earlier, HTTP support is going away in 2.0.

@bkerley bkerley closed this Sep 4, 2013
@eliaslevy
Copy link
Contributor Author

@bkerley This is not just for HTTP. This is applicable to PB as well. See the PB API documentation.

@bkerley
Copy link
Contributor

bkerley commented Sep 4, 2013

Good call on that.

@bkerley bkerley reopened this Sep 4, 2013
bkerley added a commit that referenced this pull request Sep 5, 2013
Test for object existence using head request.
@bkerley bkerley merged commit 72b23b6 into basho:master Sep 5, 2013
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