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

Method append_body

include/aws/http/response.h:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148inline void response::append_body(const char* p, size_t sz)
149{
150 // simple and generates significantly less code than std::stringstream
151 constexpr size_t min_capacity = 512;
152 if (m_body.capacity() < min_capacity) {
153 m_body.reserve(min_capacity);
154 }
155
156 m_body.append(p, sz);
157}
158
159inline bool response::has_header(char const* header) const
160{

Callers 1

write_dataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected