summaryrefslogtreecommitdiff
path: root/Source/Core/Common/HttpRequest.cpp
AgeCommit message (Collapse)Author
2026-03-23Use more std::span argumentsSintendo
2025-04-20HttpRequest: remove some legacy code for windows < 8.1Shawn Hoffman
2023-12-01Common/HTTP: Implement MultiformSketch
2023-09-16Common: Fix HttpRequest::GetLastResponseCode stack corruptionJosJuice
Should fix https://bugs.dolphin-emu.org/issues/13353.
2023-09-03IOS/KD: Implement NWC24_CHECK_MAIL_NOWSketch
2023-05-01Merge pull request #11736 from noahpistilli/get-scheduler-statLéo Lam
IOS/Network/KD: Implement GetSchedulerStat
2023-04-17IOS/Network/KD: Implement GetSchedulerStatSketch
2023-04-12Resolve [-Wdeprecated-declarations]Minty-Meeo
2022-01-13Replace use of of unsigned char* with fmtPokechu22
Using unsigned char* or signed char* results in a deprecation warning, which is treated as an error. It needs to be casted to regular char* for it to work.
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2020-10-29Common: Fix logger related crash when HTTP response is emptyThomas May
2020-10-23Common: Migrate logging to fmtLioncash
Continues the migration of our code over to the fmt logger.
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.