Super Agent features a progressive AJAX API which can be used for developing interactive website and Web-based applications.
The library wishes to present itself as a smaller and friendlier alternative to the jQuery Ajax API.
Under the hood, Super Agent is nothing more than a simple JavaScript tool that handles client-side HTTP requests, with a Node.js module that mimics the way HTTP requests are handled on the client's side.
Super Agent documentation is included with the download package.
What is new in this release:
- Add progress events to downloads
- Add support for 308 redirects
- Update node-form-data dependency
- Update to work in react native
- Update node-mime dependency
- Make usable in WebWorkers
What is new in version 1.2.0:
- Add progress events to downloads
- Add support for 308 redirects
- Update node-form-data dependency
- Update to work in react native
- Update node-mime dependency
- Make usable in WebWorkers
What is new in version 1.1.0:
- Keep timeouts intact across redirects
- Handle falsy json values
- Fire response events in browser version
- getXHR exported in client version
- Remove arity check on .end() callbacks
- Avoid setting content-type for host objects
- Don't index array strings in querystring
- Fix pipe() with redirects
- Add xhr2 file download
What is new in version 0.19.0:
- Added unset() to browser.
- Prefer XHR over ActiveX.
- Catch parse errors.
- Updated qs dependency.
- Added use() to node.
- Added response text to errors.
- Don't send empty cookie headers.
- Don't parse empty response bodies.
What is new in version 0.18.1:
- Upgrade cookiejar dependency
- Support image mime types
- Make .agent chainable
- Upgrade debug
What is new in version 0.16.0:
- Added "test" script
- Added request .accept() method
- Added XML to mime types mappings
- Fixed parse body error on HEAD requests
- Fixed documentation typos
- Fixed CORS withCredentials
What is new in version 0.15.1:
- Added try/catch around parseLinks.
What is new in version 0.15.0:
- Made Response#toError() have a more meaningful message.
What is new in version 0.14.7:
- Fixed unzip error handling.
What is new in version 0.14.6:
- Fixed HEAD unzip bug.
What is new in version 0.14.3:
- Added browser field to support browserify.
What is new in version 0.12.2:
- Added test to check if response acts as a readable stream.
- Added ReadableStream in the Response prototype.
What is new in version 0.12.0:
- Added header persistence on redirects.
What is new in version 0.10.0:
- Added req.timeout(ms) support for the client.
What is new in version 0.9.8:
- Added a better fix for nodes weird socket hang up error.
- Added PUT/POST/PATCH data support to client short-hand functions.
- Added .license property to component.json.
- Changed client portion to build using component(1).
- Fixed GET body support.
What is new in version 0.9.1:
- Added .forbidden response property
- Added component.json
- Changed emitter-component to 0.0.5
- Fixed client-side tests
What is new in version 0.9.0:
- Added .timeout(ms).
What is new in version 0.8.1:
- Fixed redirects when schema is specified.
What is new in version 0.7.0:
- Allow query() to be called after the internal req has been created.
What is new in version 0.6.0:
- Added res.send('foo=bar') default of "application/x-www-form-urlencoded".
What is new in version 0.5.0:
- Added "Link" response header field parsing, exposing res.links.
What is new in version 0.4.2:
- Added component support.
- Fixed redirect data.
What is new in version 0.4.1:
- Added HTTP PATCH support.
- Fixed GET / HEAD when following redirects.
- Fixed Content-Length detection for multibyte chars.
What is new in version 0.4.0:
- Added .head() method [browser].
- Added make test-cov support.
- Added multipart request support.
- Added all methods that node supports.
- Added "response" event providing a Response object.
- Added .query(obj).
- Added res.type (browser).
What is new in version 0.3.0:
- Added deflate/gzip support.
- Added res.type (Content-Type void of params).
- Added res.statusCode to mirror node.
- Added res.headers to mirror node.
- Changed: parsers take callbacks.
- Fixed optional schema support.
What is new in version 0.2.0:
- Added .auth(username, password)
- Added basic auth support.
- Added make test-docs
- Added guillermo's EventEmitter.
- Removed Request#data() for SS, renamed to send()
- Removed Request#data() from client, renamed to send()
- Fixed array support.
- Fixed array support.
- Fixed EventEmitter#emit()
What is new in version 0.1.3:
- Added error to callback.
- Bumped node dep for 0.5.x.
What is new in version 0.1.3:
- Added error to callback.
- Bumped node dep for 0.5.x.
What is new in version 0.1.2:
- Added markdown documentation
- Added request(url[, fn]) support to the client
- Added qs dependency to package.json
- Added options for Request#pipe()
- Added support for request(url, callback)
- Added request(url) as shortcut for request.get(url)
- Added Request#pipe(stream)
- Added inherit from Stream
- Added multipart support
- Added ssl support (node)
- Removed Content-Length field from client
- Fixed buffering, setEncoding() to utf8
- Fixed "end" event when piping
What is new in version 0.1.1:
- Added res.redirect flag (node).
- Added redirect support (node).
- Added Request#redirects(n) (node).
- Added .set(object) header field support.
- Fixed Content-Length support.
What is new in version 0.1.0:
- Added support for multiple calls to .data().
- Added support for .get(uri, obj).
- Added GET .data() querystring support.
- Added IE{6,7,8} support.
Requirements:
- JavaScript enabled on client side
- Node.js for server-side environments
Comments not found