An Tao

Results 284 comments of An Tao

> > > You could configure drogon with `cmake .. -DCMAKE_BUILD_TYPE=debug` and then drogon can be debuged drogon step by step. > > > Or a more effective way is...

@rbugajewski Apart from the aforementioned exceptions, dynamic updates of the layout worked fine in my test environment (with dev branch of drogon), compared to ordinary views, the layout view is...

```c++ auto templ = DrTemplateBase::newTemplate(layoutName); if(!templ) return ""; HttpViewData data; auto str = std::move(a_tmp_stream.str()); if(!str.empty() && str[str.length()-1] == '\n') str.resize(str.length()-1); data[""] = std::move(str); return templ->genText(data); ``` Maybe in some race...

Drogon supports range responses, you can try it: ```c++ static HttpResponsePtr newFileResponse( const std::string &fullPath, size_t offset, size_t length, bool setContentRange = true, const std::string &attachmentFileName = "", ContentType type...