response.setHeader(CONTENT_TYPE, mimeType);
}
}
ThreadSafeStaticBRJSAccessor.aquireModel();
UrlContentAccessor contentAccessor = new ServletContentAccessor(app, servletContext, request, response);
try ( ResponseContent content = app.handleLogicalRequest(requestPath, contentAccessor); )
{
if (!response.isCommitted()) { // check the ServletContentAccessor hasnt been used to handle a request and sent headers
content.write( response.getOutputStream() );
}