Skip to content

Conversation

@leograf
Copy link

@leograf leograf commented Oct 20, 2023

We need a simple way to access all headers assigned to a HTTP request from the server side.
I think adding this simple getter method to the message.h header should suffice.

webcc/message.h Outdated
return !headers_.Get(key).empty();
}

Headers GetHeaders() const {
Copy link
Owner

Choose a reason for hiding this comment

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

Suggest to change to:

const Headers& headers() const {
  return headers_;
}

This is more Google C++ Style.

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.

3 participants