@@ -71,18 +71,18 @@ class RequestPayload
71
71
void set_port (long aPort) {port = aPort; }
72
72
73
73
74
- std::string get_uri () { return uri; }
75
- std::string get_request_protocol () { return request_protocol; }
76
- std::string get_http_get_parameter () { return http_get_parameter; }
77
- std::string get_http_post_parameter () { return http_post_parameter; }
78
- std::string get_http_request_method () { return http_request_method; }
74
+ std::string& get_uri () { return uri; }
75
+ std::string& get_request_protocol () { return request_protocol; }
76
+ std::string& get_http_get_parameter () { return http_get_parameter; }
77
+ std::string& get_http_post_parameter () { return http_post_parameter; }
78
+ std::string& get_http_request_method () { return http_request_method; }
79
79
std::unordered_map<std::string, std::string> get_http_headers () { return http_headers; }
80
- std::string get_server_name () { return server_name; }
81
- std::string get_scheme () {return scheme; }
82
- std::string get_host () {return host; }
83
- std::string get_target () {return target; }
84
- std::string get_flavor () {return flavor; }
85
- std::string get_client_ip () {return client_ip; }
80
+ std::string& get_server_name () { return server_name; }
81
+ std::string& get_scheme () {return scheme; }
82
+ std::string& get_host () {return host; }
83
+ std::string& get_target () {return target; }
84
+ std::string& get_flavor () {return flavor; }
85
+ std::string& get_client_ip () {return client_ip; }
86
86
long get_port () {return port; }
87
87
std::unordered_map<std::string, std::string>& get_request_headers () {
88
88
return request_headers;
0 commit comments