diff options
author | 2010-01-05 15:53:35 -0500 | |
---|---|---|
committer | 2010-01-05 15:53:35 -0500 | |
commit | 3232b1f7a6f470ec4eba648093cc854555d6fbdd (patch) | |
tree | b67a5a5e5e99fc172550dd57daf21aac3ddd5f10 /src/c/urweb.c | |
parent | 4e8b9e17f5fa9919b5a09bbf8a0a61828a54b7d4 (diff) |
Basis.textBlob; support HTTP requests with no headers
Diffstat (limited to 'src/c/urweb.c')
-rw-r--r-- | src/c/urweb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index f52fc459..e63b2060 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -3131,6 +3131,12 @@ uw_Basis_int uw_Basis_blobSize(uw_context ctx, uw_Basis_blob b) { return b.size; } +uw_Basis_blob uw_Basis_textBlob(uw_context ctx, uw_Basis_string s) { + uw_Basis_blob b = {strlen(s), s}; + + return b; +} + uw_Basis_blob uw_Basis_fileData(uw_context ctx, uw_Basis_file f) { return f.data; } |