37 std::string content =
"line" + std::to_string(fCounter++) +
" ";
39 for (
int n = 0;
n < 2000;
n++)
43 if (fCounter >= 1000) {
53 TChunkedHttpServer(
const char *engine) : THttpServer(engine) {}
61 auto serv =
new TChunkedHttpServer(
"http:8080");
#define ClassDefOverride(name, id)
void SetTextContent(std::string &&txt)
Set content type as "text/plain" and also assigns content.
void SetChunked(Bool_t on=kTRUE)
Mark as chunked.
const char * GetFileName() const
returns file name from request URL
Online http server for arbitrary ROOT application.
virtual void MissedRequest(THttpCallArg *arg)
Method called when THttpServer cannot process request.