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

Definition of StatusCode in reqwest #448

Closed
gbonnema opened this issue Jan 26, 2019 · 2 comments
Closed

Definition of StatusCode in reqwest #448

gbonnema opened this issue Jan 26, 2019 · 2 comments

Comments

@gbonnema
Copy link
Contributor

In some code I am working through, I found the reference "reqwest::StatusCode::NotFound" which the compiler cannot find. I cannot find the definition of StatusCode in reqwest at all! Is there some hidden way to define such an item? I expect it's an enum?

I read the issue #122 but still have no clue where to look for the definition of reqwest::StatusCode.

Kind regards, Guus Bonnema, just starting rust.

@gbonnema
Copy link
Contributor Author

gbonnema commented Jan 26, 2019

This is really stupid: I found it in the docs. I finally found out how to open the docs and found the items listed in StatusCode. Still, I would really like to look at the code defining it, if I could find it .....

EDIT: Ofcourse the docs have a pointer to the code, I should have known, sorry to have bothered you. I will check the docs more ferociously in future. ..... xD

@gbonnema
Copy link
Contributor Author

I will close this one to minimize embarrasment .....

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

No branches or pull requests

1 participant