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

There is NO ACCESS to the reason phrase of a parsed HTTP response #37

Open
ademin opened this issue Mar 28, 2014 · 3 comments
Open

There is NO ACCESS to the reason phrase of a parsed HTTP response #37

ademin opened this issue Mar 28, 2014 · 3 comments

Comments

@ademin
Copy link

ademin commented Mar 28, 2014

Steps to reproduce: Parse any HTTP response (ex. HTTP/1.1 200 OK)
How can one access to the reason phrase of the parsed message?

@ghost
Copy link

ghost commented Mar 28, 2014

There is no such thing as reason in HTTP itself. Do you mean the status code, or a specific header called Reason?

@ademin
Copy link
Author

ademin commented Mar 28, 2014

No. I mean the reason phrase in the Status Line of a HTTP response message.
Please, refer to https://tools.ietf.org/html/rfc2616#section-6.1

@ghost
Copy link

ghost commented Mar 28, 2014

Sorry, my bad, you're totally right. The underlying joyent/http-parser library supports this via the on_status callback for some time, it just needs a proper binding into Ruby.

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