about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-01 23:31:39 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-01 23:36:15 +0200
commit51da99365959f4fd35cef7b5f8f919386f2cf4ca (patch)
tree224426e877284c6199afa84291f07e530693f381 /src/html
parent2f74b628f3c91860860cc19fc07db5c304e8e6ed (diff)
downloadchawan-51da99365959f4fd35cef7b5f8f919386f2cf4ca.tar.gz
Factor out headers into separate module
Diffstat (limited to 'src/html')
-rw-r--r--src/html/env.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/html/env.nim b/src/html/env.nim
index 09cf1c5c..174f0a12 100644
--- a/src/html/env.nim
+++ b/src/html/env.nim
@@ -3,6 +3,7 @@ import streams
 
 import html/dom
 import html/htmlparser
+import io/headers
 import io/loader
 import io/promise
 import io/request
@@ -123,6 +124,7 @@ proc addScripting*(window: Window, selector: Selector[int]) =
   ctx.addIntlModule()
   ctx.addBlobModule()
   ctx.addFormDataModule()
+  ctx.addHeadersModule()
   ctx.addRequestModule()
   ctx.addResponseModule()