diff options
author | Eduardo Julian | 2021-08-08 17:56:15 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-08-08 17:56:15 -0400 |
commit | f621a133e6e0a516c0586270fea8eaffb4829d82 (patch) | |
tree | 399396ee2f6a10df10cea9b78c51c76679b70e59 /stdlib/source/library/lux/world/net/http/header.lux | |
parent | 17e7566be51df5e428a6b10e6469201a8a9468da (diff) |
No more #export magic syntax.
Diffstat (limited to 'stdlib/source/library/lux/world/net/http/header.lux')
-rw-r--r-- | stdlib/source/library/lux/world/net/http/header.lux | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/library/lux/world/net/http/header.lux b/stdlib/source/library/lux/world/net/http/header.lux index 1d84b3318..6f8d92cc2 100644 --- a/stdlib/source/library/lux/world/net/http/header.lux +++ b/stdlib/source/library/lux/world/net/http/header.lux @@ -12,7 +12,7 @@ ["." mime (#+ MIME)] [// (#+ URL)]]) -(def: #export (add name value) +(def: .public (add name value) (-> Text Text Header) (dictionary.upsert name "" (|>> (case> @@ -22,14 +22,14 @@ previous (format previous "," value))))) -(def: #export content_length +(def: .public content_length (-> Nat Header) (|>> %.nat (..add "Content-Length"))) -(def: #export content_type +(def: .public content_type (-> MIME Header) (|>> mime.name (..add "Content-Type"))) -(def: #export location +(def: .public location (-> URL Header) (..add "Location")) |