Commit 599d7764 authored by Max Kellermann's avatar Max Kellermann

client/Response: add method GetClient()

parent 09d87d5e
......@@ -49,6 +49,16 @@ public:
Response(const Response &) = delete;
Response &operator=(const Response &) = delete;
/**
* Returns a const reference to the associated #Client object.
* This should only be used to access a client's settings, to
* determine how to format the response. For this reason, the
* returned reference is "const".
*/
const Client &GetClient() const {
return client;
}
void SetCommand(const char *_command) {
command = _command;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment