summaryrefslogtreecommitdiffstats
path: root/src/web_service/web_backend.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-10-13core/CMakeLists: Make some warnings errorsLioncash1-9/+6
Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors.
2020-08-23web_service: Move web_result.h into web_serviceLioncash1-29/+27
This is the only place it's actively used. It's also more appropriate for web-related structures to be within the web service target. Especially given this one doesn't rely on anything in the common library.
2020-04-16CMakeLists: Specify -Wextra on linux buildsLioncash1-7/+7
Allows reporting more cases where logic errors may exist, such as implicit fallthrough cases, etc. We currently ignore unused parameters, since we currently have many cases where this is intentional (virtual interfaces). While we're at it, we can also tidy up any existing code that causes warnings. This also uncovered a few bugs as well.
2020-02-19httplib compatibilityBrian Clinkenbeard1-4/+3
2019-11-09web-service: Port citra's updated web_backend code.bunnei1-18/+34
2019-04-01general: Use deducation guides for std::lock_guard and std::unique_lockLioncash1-2/+2
Since C++17, the introduction of deduction guides for locking facilities means that we no longer need to hardcode the mutex type into the locks themselves, making it easier to switch mutex types, should it ever be necessary in the future.
2019-03-02web_service: Remove unnecessary inclusionsLioncash1-1/+0
Reduces the potential amount of rebuilding necessary if any headers change. In particular, we were including a header from the core library when we don't even link the core library to the web_service library, so this also gets rid of an indirect dependency.
2018-10-11web_backend: Make Client use the PImpl idiomLioncash1-94/+141
Like with TelemetryJson, we can make the implementation details private and avoid the need to expose httplib to external libraries that need to use the Client class.
2018-10-02Review comments -part 4fearlessTobi1-2/+2
2018-10-02web_backend: protect jwt cache with a mutexWeiyi Wang1-0/+2
2018-10-02Address a bunch of review commentsfearlessTobi1-4/+4
2018-10-02Port web_service from CitrafearlessTobi1-0/+147
2018-01-13Massive removal of unused modulesJames Rowe1-140/+0
2017-09-19WebService: Verify username and token (#2930)B3n301-12/+89
* WebService: Verify username and token; Log errors in PostJson * Fixup: added docstrings to the functions * Webservice: Added Icons to the verification, imrpved error detection in cpr, fixup nits * fixup: fmt warning
2017-08-27web_backend: Fix CPR bug where Winsock is not properly initializing.bunnei1-15/+27
2017-08-26web_backend: Fix asynchronous JSON post by spawning new thread.bunnei1-9/+18
2017-08-26web_services: Refactor to remove dependency on Core.bunnei1-15/+16
2017-08-26web_backend: User config for username and token, support anonymous post.bunnei1-28/+17
2017-07-12web_backend: Specify api-version on JSON post.bunnei1-1/+3
2017-07-12web_backend: Add initial interface to POST data to Citra Web Services.bunnei1-0/+41
2017-07-10web_service: Add skeleton project.bunnei1-0/+9