aboutsummaryrefslogtreecommitdiff
path: root/docs/net.md
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2024-09-30 11:13:49 -0500
committeramelia squires <[email protected]>2024-09-30 11:13:49 -0500
commitfad6f8b6c1f0d551a733160c417a253616b71f5d (patch)
treef8f73457a0cd1c96191c829843d01dfdbb8138ca /docs/net.md
parent0dd67a9fd8dbf12a693e7007b790d6bffe19b04d (diff)
attatchments
Diffstat (limited to 'docs/net.md')
-rw-r--r--docs/net.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/net.md b/docs/net.md
index 0807c72..9c841b3 100644
--- a/docs/net.md
+++ b/docs/net.md
@@ -158,6 +158,14 @@ res.header["test"] = "wowa"
res.header["Content-Type"] is set automatically depending on the file extention, using /etc/mime.types, or whatever option was supplied to listen (see listen options)
+option table
+
+|key|value|effect|
+|--|--|--|
+|attatchment|boolean, default false|whether or not to add Content-Disposition (if file will be downloaded)|
+|filename|string, defualts as the first argument|what the client should see as a filename (only when attatchment is true)|
+
+
```lua
...
res:sendfile("./html/index.html")