-
-
Save mathieugarcia/a68bc53ff078d4e4151cb21af0882384 to your computer and use it in GitHub Desktop.
Utility function to create a new HTTPRequest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <typename DoneLambda, typename ErrorLambda> | |
auto MakeHTTPRequest(const std::string& rURL, | |
DoneLambda&& d, | |
ErrorLambda&& e) | |
-> HTTPRequest<DoneLambda, ErrorLambda> | |
{ | |
return { rURL, | |
std::forward<DoneLambda>(d), | |
std::forward<ErrorLambda>(e) | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment