Skip to content

lua: add requestInfo():protocol() API#3760

Merged
mattklein123 merged 7 commits intoenvoyproxy:masterfrom
dio:lua-request-info-protocol
Jul 3, 2018
Merged

lua: add requestInfo():protocol() API#3760
mattklein123 merged 7 commits intoenvoyproxy:masterfrom
dio:lua-request-info-protocol

Conversation

@dio
Copy link
Member

@dio dio commented Jun 29, 2018

Description:
This patch adds requestInfo():protocol() to StreamHandleWrapper. This
API returns the HTTP protocol version used by current the request.

Risk Level: Low

Testing:
Unit and integration tests

Docs Changes:

  • Add requestInfo():protocol() API.

Release Notes:

  • lua: added requestInfo() wrapper and protocol() API.

Related issue: #3704

Signed-off-by: Dhi Aurrahman dio@rockybars.com

dio added 6 commits June 29, 2018 09:50
This patch adds requestInfo():protocol() to StreamHandleWrapper. This
API returns the current HTTP protocol used by the request.

Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

nice, LGTM. Small comment nit. Thank you!


requestInfo = handle:requestInfo()

Returns some :repo:`information <include/request_info/request_info.h>` related to the current request.
Copy link
Member

Choose a reason for hiding this comment

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

nit: remove "some" (we can add more later and people can read below about what is actually available)

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated in 15a3ff7. Thank you.

Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
@mattklein123 mattklein123 merged commit 2c3c3e7 into envoyproxy:master Jul 3, 2018
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