MCPcopy Create free account
hub / github.com/chenshuo/muduo / endRequest

Method endRequest

examples/fastcgi/fastcgi.cc:138–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void FastCgiCodec::endRequest(Buffer* buf)
139{
140 RecordHeader header =
141 {
142 1,
143 kFcgiEndRequest,
144 sockets::hostToNetwork16(1),
145 sockets::hostToNetwork16(kRecordHeader),
146 0,
147 0,
148 };
149 buf->append(&header, kRecordHeader);
150 buf->appendInt32(0);
151 buf->appendInt32(0);
152}
153
154void FastCgiCodec::respond(Buffer* response)
155{

Callers

nothing calls this directly

Calls 3

hostToNetwork16Function · 0.85
appendInt32Method · 0.80
appendMethod · 0.45

Tested by

no test coverage detected