mirror of
https://github.com/Open-Argon/http.ar.git
synced 2026-10-28 09:43:55 +00:00
more to parent
This commit is contained in:
1 parent
d076e9a9fa
commit
3abbee2aa8
18 files changed
+15
-3
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import "../../src/http" as http
|
||||
import "../../src" as http
|
||||
|
||||
let parent = path.parent(program.file.path)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import "../../src/http" as http
|
||||
import "../../src" as http
|
||||
import "../../src/bleach" as bleach
|
||||
|
||||
let app = http.server()
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import "../../src" as http
|
||||
|
||||
let app = http.server()
|
||||
|
||||
app.use(http.logger)
|
||||
|
||||
let zipfile = path.join([path.parent(program.file.path), "test.zip"])
|
||||
|
||||
let download(req, res) = do
|
||||
res.sendFile(zipfile)
|
||||
app.route("/download", null, download)
|
||||
|
||||
app.run()
|
||||
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1 +0,0 @@
|
||||
import "http/init" as *
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user