about summary refs log tree commit diff stats
path: root/src/loader
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-08 21:30:32 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-08 21:47:19 +0200
commitdee468d502a2d2e0aa6ae2f8365c098f72acc0c9 (patch)
tree8700f96705e1e9f12122539c81047b43d6992a8b /src/loader
parentbb0605182a3944418f74e1f5269916d4d0298190 (diff)
downloadchawan-dee468d502a2d2e0aa6ae2f8365c098f72acc0c9.tar.gz
pager, buffer: improve forms, protocol config
* refactor form submission
* add options to specify form handling per protocol
* block cross-protocol POST requests
Diffstat (limited to 'src/loader')
-rw-r--r--src/loader/request.nim16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/loader/request.nim b/src/loader/request.nim
index fc6c43f5..277481f1 100644
--- a/src/loader/request.nim
+++ b/src/loader/request.nim
@@ -115,22 +115,6 @@ func newRequest*(url: URL; httpMethod = hmGet; headers = newHeaders();
     suspended: suspended
   )
 
-func newRequest*(url: URL; httpMethod = hmGet;
-    headers: seq[(string, string)] = @[]; body = none(string);
-    multipart = none(FormData); proxy: URL = nil): Request =
-  let hl = newHeaders()
-  for pair in headers:
-    let (k, v) = pair
-    hl.table[k] = @[v]
-  return newRequest(
-    url,
-    httpMethod,
-    hl,
-    body,
-    multipart,
-    proxy = proxy
-  )
-
 func createPotentialCORSRequest*(url: URL; destination: RequestDestination;
     cors: CORSAttribute; fallbackFlag = false): JSRequest =
   var mode = if cors == caNoCors: