drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.62k stars 1.12k forks source link

could add a newHttpResponse Function overloading ? #1644

Closed nqf closed 1 year ago

nqf commented 1 year ago
HttpResponsePtr HttpResponse::newHttpResponse(HttpStatusCode code, ContentType type)
{
    auto res = std::make_shared<HttpResponseImpl>(code, type);
    doResponseCreateAdvices(res);
    return res;
}
an-tao commented 1 year ago

Yes, you could make a PR for this.

nqf commented 1 year ago

https://github.com/drogonframework/drogon/pull/1646