Mercurial > urweb
comparison src/c/urweb.c @ 1119:951fced704d6
Basis.textBlob; support HTTP requests with no headers
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 05 Jan 2010 15:53:35 -0500 |
parents | 87b0a9d08e73 |
children | 74f2eb3b0606 |
comparison
equal
deleted
inserted
replaced
1118:87b0a9d08e73 | 1119:951fced704d6 |
---|---|
3127 return f.type; | 3127 return f.type; |
3128 } | 3128 } |
3129 | 3129 |
3130 uw_Basis_int uw_Basis_blobSize(uw_context ctx, uw_Basis_blob b) { | 3130 uw_Basis_int uw_Basis_blobSize(uw_context ctx, uw_Basis_blob b) { |
3131 return b.size; | 3131 return b.size; |
3132 } | |
3133 | |
3134 uw_Basis_blob uw_Basis_textBlob(uw_context ctx, uw_Basis_string s) { | |
3135 uw_Basis_blob b = {strlen(s), s}; | |
3136 | |
3137 return b; | |
3132 } | 3138 } |
3133 | 3139 |
3134 uw_Basis_blob uw_Basis_fileData(uw_context ctx, uw_Basis_file f) { | 3140 uw_Basis_blob uw_Basis_fileData(uw_context ctx, uw_Basis_file f) { |
3135 return f.data; | 3141 return f.data; |
3136 } | 3142 } |