about summary refs log tree commit diff stats
path: root/src/types
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-02-01 14:38:35 +0100
committerbptato <nincsnevem662@gmail.com>2025-02-01 14:38:37 +0100
commit2c59dc7328982fa8da7d7323488dc7ecf46ca66e (patch)
tree3c45fe12b03944e09c9ea8de4fc419cf736b1d2b /src/types
parentfb83af595b803c1d2034a70437381c8550eae3bf (diff)
downloadchawan-2c59dc7328982fa8da7d7323488dc7ecf46ca66e.tar.gz
response: stub constructor
Diffstat (limited to 'src/types')
-rw-r--r--src/types/blob.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types/blob.nim b/src/types/blob.nim
index 689883a8..f34082d1 100644
--- a/src/types/blob.nim
+++ b/src/types/blob.nim
@@ -73,6 +73,9 @@ proc newBlob*(buffer: pointer; size: int; ctype: string;
     opaque: opaque
   )
 
+proc newEmptyBlob*(contentType = ""): Blob =
+  return newBlob(nil, 0, contentType, nil)
+
 proc deallocBlob*(opaque, p: pointer) =
   if p != nil:
     dealloc(p)