MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / get_header

Method get_header

include/aws/http/response.h:166–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166inline lambda_runtime::outcome<std::string, bool> response::get_header(char const* header) const
167{
168 auto it = std::find_if(m_headers.begin(), m_headers.end(), [header](std::pair<std::string, std::string> const& p) {
169 return p.first == header;
170 });
171
172 if (it == m_headers.end()) {
173 return false;
174 }
175 return it->second;
176}
177
178} // namespace http
179} // namespace aws

Callers 1

get_nextMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected