bneradt commented on code in PR #9845:
URL: https://github.com/apache/trafficserver/pull/9845#discussion_r1231205452
##########
proxy/http/HttpSM.h:
##########
@@ -519,6 +522,18 @@ class HttpSM : public Continuation, public
PluginUserArgs<TS_USER_ARGS_TXN>
/// Update the milestones to track time spent in the plugin API.
void milestone_update_api_time();
+ sockaddr *
+ server_ip() const
+ {
+ return &t_state.current.server->dst_addr.sa;
+ };
+
+ int
+ method() const
+ {
+ return t_state.hdr_info.server_request.method_get_wksidx();
+ };
Review Comment:
Can we make these explicit getters: `get_server_ip` and `get_request_method`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]