project layout
very simple http client for handling text result
request error handling
return request error events in callback
can specify http accept header
added optional options param, accept options (defaults to text/plain)
add repository field in package.json
parse http data
parse raw http data using parser function defined in options
transform results
transform function transforms the parsed data and returns that data to the user's callback
resize buffer if needed
resize buffer if content length was not specified
lower initial buffer size
moved buffer related variables up in scope
better callback handling
callback chains moved to named functions
process.nextTick between steps
can connect to port
uses parsed port from url (defaults to 80)
use function name in log message
handle response error codes
fail if response status code not 2xx
pass parse, transform errors to callback
wrap parse, transform in try/catch and return errors to callback
include state details in error callbacks
onError function builds object with state details (length, received, buffer, parsed) error action and the actual error raised
tests cleanup
split general/foaas integratio tests to 2 files
fix transform function for parse
rename to service-client
create readme md file