Adding HTTP protocol version to the response table #934
Comments
Sounds good to me! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sounds good to me! |
Library
http.lua
is already parsing the status line of HTTP responses, including the HTTP protocol version. This information should be captured so that other code does not need to re-implement the version extraction.I am proposing
version
as a new member of the response table. The value is a string, as extracted from the status line. A consuming code could use it as follows:The actual patch follows:
Please let me know if you have any questions or concerns.
The text was updated successfully, but these errors were encountered: