I'm not sure, because you stripped out the relevant part of the code, but the problem seems to occur because your request-object is declared as const. HTTPServerRequest::stream() is not declared const and therefore you're not allowed to call this method from a const-object.
So check out the following: where do you call the method HTTPServerRequest::stream()? Where does the request-object come from in this place? Is it declared to be constant (e.g. passed as a const function parameter)? Does it have to be declared constant in this place?
Greetings