MCPcopy Create free account
hub / github.com/MrKepzie/Natron / writeHeader

Method writeHeader

libs/qhttpserver/src/qhttpresponse.cpp:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void QHttpResponse::writeHeader(const char *field, const QString &value)
66{
67 if (!m_finished) {
68 m_connection->write(field);
69 m_connection->write(": ");
70 m_connection->write(value.toUtf8());
71 m_connection->write("\r\n");
72 } else {
73#ifdef DEBUG
74 qWarning() << "QHttpResponse::writeHeader() Cannot write headers after response has finished.";
75#endif
76 }
77}
78
79void QHttpResponse::writeHeaders()
80{

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected