mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Common: Rename Download to Request, and the old Request to ServerRequest.
This commit is contained in:
1 parent
d4c0d1da64
commit
93bb113009
20 files changed
+97
-99
No files matched your search
+6
-6
@@ -159,7 +159,7 @@ static Path LocalFromRemotePath(const std::string &path) {
|
||||
return Path();
|
||||
}
|
||||
|
||||
static void DiscHandler(const http::Request &request, const Path &filename) {
|
||||
static void DiscHandler(const http::ServerRequest &request, const Path &filename) {
|
||||
s64 sz = File::GetFileSize(filename);
|
||||
|
||||
std::string range;
|
||||
@@ -211,7 +211,7 @@ static void DiscHandler(const http::Request &request, const Path &filename) {
|
||||
}
|
||||
}
|
||||
|
||||
static void HandleListing(const http::Request &request) {
|
||||
static void HandleListing(const http::ServerRequest &request) {
|
||||
AndroidJNIThreadContext jniContext;
|
||||
|
||||
request.WriteHttpResponseHeader("1.0", 200, -1, "text/plain");
|
||||
@@ -230,7 +230,7 @@ static void HandleListing(const http::Request &request) {
|
||||
}
|
||||
}
|
||||
|
||||
static bool ServeDebuggerFile(const http::Request &request) {
|
||||
static bool ServeDebuggerFile(const http::ServerRequest &request) {
|
||||
// Skip the slash at the start of the resource path.
|
||||
const char *filename = request.resource() + 1;
|
||||
if (strstr(filename, "..") != nullptr)
|
||||
@@ -264,13 +264,13 @@ static bool ServeDebuggerFile(const http::Request &request) {
|
||||
return true;
|
||||
}
|
||||
|
||||
static void RedirectToDebugger(const http::Request &request) {
|
||||
static void RedirectToDebugger(const http::ServerRequest &request) {
|
||||
static const std::string payload = "Redirecting to debugger UI...\r\n";
|
||||
request.WriteHttpResponseHeader("1.0", 301, (int)payload.size(), "text/plain", "Location: /debugger/index.html\r\n");
|
||||
request.Out()->Push(payload);
|
||||
}
|
||||
|
||||
static void HandleFallback(const http::Request &request) {
|
||||
static void HandleFallback(const http::ServerRequest &request) {
|
||||
AndroidJNIThreadContext jniContext;
|
||||
|
||||
if (serverFlags & (int)WebServerFlags::DISCS) {
|
||||
@@ -296,7 +296,7 @@ static void HandleFallback(const http::Request &request) {
|
||||
request.Out()->Push(payload);
|
||||
}
|
||||
|
||||
static void ForwardDebuggerRequest(const http::Request &request) {
|
||||
static void ForwardDebuggerRequest(const http::ServerRequest &request) {
|
||||
AndroidJNIThreadContext jniContext;
|
||||
|
||||
if (serverFlags & (int)WebServerFlags::DEBUGGER) {
|
||||
|
||||
Reference in new issue
Block a user