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
@@ -77,10 +77,10 @@ namespace Http
|
||||
m.source = Http.HttpResponseSource.GENERATED
|
||||
end function
|
||||
|
||||
function Redirect(where as string)
|
||||
function Redirect(where as string, code = 301 as integer)
|
||||
m.location = where
|
||||
message = "Moved to: <a href=" + Quote() + where + Quote() + ">" + where + "</a>"
|
||||
m.Default(301, message)
|
||||
m.Default(code, message)
|
||||
end function
|
||||
|
||||
function Json(data as object)
|
||||
|
||||
Reference in new issue
Block a user