 	exp = module.exports
 
 _requireArg = (arg) -> "Must provide '#{arg}' argument"
+
+_parseHeaders = (str) ->
+	ret = {}
+	for line in str.split(/\n/)
+		colonIndex = line.indexOf(':')
+		k = line.substr(0, colonIndex).trim().toLowerCase()
+		v = line.substr(colonIndex + 1).trim()
+		ret[k] = v
+	return ret
 
 class Bootstrap
 

						return opts.onComplete execution
					return opts.onProgress execution
		pollId = setTimeout poll, @pollInterval

	uploadFiles: (opts = {}) ->
		if typeof opts isnt 'object'

$        = require 'jquery'
_        = require 'lodash' Async    = require 'async'
Request  = require 'superagent'

if typeof window isnt 'undefined'
