MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / setHeader

Method setHeader

libs/qhttpserver/src/qhttpresponse.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void QHttpResponse::setHeader(const QString &field, const QString &value)
55{
56 if (!m_finished)
57 m_headers[field] = value;
58 else {
59#ifdef DEBUG
60 qWarning() << "QHttpResponse::setHeader() Cannot set headers after response has finished.";
61#endif
62 }
63}
64
65void QHttpResponse::writeHeader(const char *field, const QString &value)
66{

Callers 3

handlerMethod · 0.80
addTextHttpPartFunction · 0.80
addFileHttpPartFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected