diff options
Diffstat (limited to 'utils/lib/http.js')
-rwxr-xr-x | utils/lib/http.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/utils/lib/http.js b/utils/lib/http.js deleted file mode 100755 index 904dc6d..0000000 --- a/utils/lib/http.js +++ /dev/null @@ -1,17 +0,0 @@ - -var implementation = require('http-platform'); - -exports.open = function (url, mode, options) { - // todo mode negotiation, particularly for binary vs text buffering - return new implementation.IO(url); -}; - -exports.read = function (url) { - var stream = exports.open(url); - try { - return stream.read(); - } finally { - stream.close(); - } -}; - |