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

add status code checks #57

Merged
merged 4 commits into from
Apr 23, 2020
Merged

Conversation

ruseinov
Copy link
Contributor

Fixes #50

Copy link

@epolishko-5am epolishko-5am left a comment

Choose a reason for hiding this comment

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

LGTM

Cargo.toml Outdated
@@ -18,6 +18,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
url = "2.1"
failure = "0.1"
http = "0.2.1"
Copy link
Owner

Choose a reason for hiding this comment

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

Does the reqwest crate not re-export these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure does!

@gsquire
Copy link
Owner

gsquire commented Apr 23, 2020

Thanks for the PR! Just one minor thing and I think it will be ready to merge after that.

@ruseinov
Copy link
Contributor Author

@gsquire Sounds good, done!

@ruseinov
Copy link
Contributor Author

I'm relatively new to Rust development, although I have been on it in many other languages, so the concept of re-export in a 3rd party package is still kinda on and off in my head, although I use it heavily in my projects.

@ruseinov
Copy link
Contributor Author

@gsquire shall I bump the version as well?

@gsquire gsquire merged commit 6b2ac58 into gsquire:master Apr 23, 2020
@gsquire
Copy link
Owner

gsquire commented Apr 23, 2020

Nice work, @ruseinov! Thanks again.

@gsquire
Copy link
Owner

gsquire commented Apr 23, 2020

FYI I bumped the version to 0.11.0 since I would consider this a breaking change. I published it now so it should be available on https://crates.io soon.

CC @kanekv

@ruseinov ruseinov deleted the feature/http-status-checks branch April 23, 2020 21:53
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.

when SG returns error, library happily returns success
3 participants