Play API prototype (#8)
* Play API prototype * Web app * Drag and drop support * Handle different urls * Fix redirect * Increase max connections * changelog * Limit timeout * Use fetch * Redirects * Formatting
This commit is contained in:
1 parent
192eec9519
commit
651bb54dee
15 files changed
+180
-39
No files matched your search
@@ -10,12 +10,12 @@ namespace Http
|
||||
response = context.response
|
||||
|
||||
method = request.method
|
||||
route = request.uri
|
||||
uri = request.uri
|
||||
|
||||
if method = ""
|
||||
response.Default(400, "You sent a request that the server couldn't understand.")
|
||||
else
|
||||
response.Default(404, `Cannot ${method} ${route}`)
|
||||
response.Default(404, `Cannot ${method} ${uri}`)
|
||||
end if
|
||||
|
||||
return true
|
||||
|
||||
Reference in new issue
Block a user