summaryrefslogtreecommitdiff
path: root/Source/Core/Common/HttpRequest.cpp
AgeCommit message (Collapse)Author
2019-06-23Fix out of bounds read in HttpRequest::Impl::Fetch loggingSilent
2019-06-20Common/HttpRequest: Use CURLOPT_ERRORBUFFER for error messagesspycrab
2019-05-27Common/HttpRequest: Simplify cURL initializationLioncash
std::call_once is guaranteed to execute the given callable object exactly once. This guarantee holds even if the function is called concurrently from several threads. Given that, we can replace the mutex and boolean flag with std::call_once and a std::once_flag to perform the same behavior.
2019-05-27Common/HttpRequest: Avoid unnecessary copies in loop in Fetch()Lioncash
Previously, every entry pair within the map would be copied. The reason for this is subtle. A std::map's internal entry type is defined as: std::pair<const Key, Value> but the loop was declaring it as: std::pair<Key, Value> These two types aren't synonymous with one another and so the compiler is required to always perform a copy. Using structured bindings avoids this (as would plain auto or correcting the explicit type), while also allowing the use of more appropriate names compared to first and second.
2019-05-27Common/HttpRequest: std::move callback in constructorLioncash
std::function is allowed to heap allocate in order to hold any necessary bound data in order to execute properly (e.g. lambdas with captures), so this avoids unnecessary reallocating.
2019-04-13Common/HttpRequest: Add option to allow non 200 response codesspycrab
2019-04-06Common/HttpRequest: Fix EscapeComponent leaking memoryspycrab
2019-04-06Qt/NetPlay: Integrate NetPlayIndexspycrab
2019-03-30Common/HttpRequest: Implement EscapeComponentspycrab
2019-02-01Common/HttpRequest: optionally follow redirectsTillmann Karras
2018-08-13Force IPv4 on external IP addressesSleepy Flower Girl
2018-05-29Common/HttpRequest: Add option to set cookiesspycrab
2018-05-04HttpRequest/Curl: Use a more intelligent timeout methodspycrab
2018-03-28HttpRequest: Add callback optionspycrab
2018-03-20HttpRequest: make curl initialization thread-safePierre Bourdon
2017-06-18HttpRequest: Use std::chrono for indicating time periodsLioncash
Allows the use of chrono time points, on top of being more indicative of time periods used at call sites, if custom timeouts are specified.
2017-06-13HttpRequest: Add support for custom timeoutsLéo Lam
2017-06-13HttpRequest: Add support for sending custom headersLéo Lam
2017-06-13HttpRequest: Log response body on failureLéo Lam
2017-06-13Common: Add HttpRequest to simplify HTTP requestsLéo Lam
Too much boilerplate that is duplicated if we use curl directly. Let's add a simple wrapper class that hides the implementation details and just allows to simply make HTTP requests and get responses.