tcr / rem

HTTP clients with middleware for Node.js and web browsers. Flexible for any HTTP request, customizable for building API clients, and supports OAuth.
MIT License
25 stars 11 forks source link

Allow solo MIME Type in api(path).put(mimetype, callback) when streamed #63

Closed tcr closed 11 years ago

tcr commented 11 years ago

Probably involves seeing if .emit('pipe') invoked before next event loop.

tcr commented 11 years ago
api('path').post('content', callback)
api('path').post('content').on('response', ...)
api('path').post('mimetype', 'content', callback)
api('path').post('mimetype', 'content').on('response', ...)
stream.pipe(api('path').post('mimetype', callback))
stream.pipe(api('path').post('mimetype')).on('response', ...)