api documentation for superagent (v3.5.2)

elegant & feature rich browser / node HTTP with a fluent API

table of contents

  1. module superagent
    1. function superagent (method, url)
    2. function superagent.Request (method, url)
    3. function superagent.Response (req)
    4. function superagent.acl (url, data, fn)
    5. function superagent.agent (options)
    6. function superagent.checkout (url, data, fn)
    7. function superagent.client (method, url)
    8. function superagent.connect (url, data, fn)
    9. function superagent.copy (url, data, fn)
    10. function superagent.del (url, data, fn)
    11. function superagent.delete (url, data, fn)
    12. function superagent.get (url, data, fn)
    13. function superagent.head (url, data, fn)
    14. function superagent.link (url, data, fn)
    15. function superagent.lock (url, data, fn)
    16. function superagent.m-search (url, data, fn)
    17. function superagent.merge (url, data, fn)
    18. function superagent.mkactivity (url, data, fn)
    19. function superagent.mkcalendar (url, data, fn)
    20. function superagent.mkcol (url, data, fn)
    21. function superagent.move (url, data, fn)
    22. function superagent.notify (url, data, fn)
    23. function superagent.options (url, data, fn)
    24. function superagent.patch (url, data, fn)
    25. function superagent.post (url, data, fn)
    26. function superagent.propfind (url, data, fn)
    27. function superagent.proppatch (url, data, fn)
    28. function superagent.purge (url, data, fn)
    29. function superagent.put (url, data, fn)
    30. function superagent.rebind (url, data, fn)
    31. function superagent.report (url, data, fn)
    32. function superagent.request_base (obj)
    33. function superagent.response_base (obj)
    34. function superagent.search (url, data, fn)
    35. function superagent.subscribe (url, data, fn)
    36. function superagent.trace (url, data, fn)
    37. function superagent.unbind (url, data, fn)
    38. function superagent.unlink (url, data, fn)
    39. function superagent.unlock (url, data, fn)
    40. function superagent.unsubscribe (url, data, fn)
    41. object superagent.Request.prototype
    42. object superagent.Response.prototype
    43. object superagent.agent.prototype
    44. object superagent.parse
    45. object superagent.protocols
    46. object superagent.request_base.prototype
    47. object superagent.response_base.prototype
    48. object superagent.serialize
    49. object superagent.utils
  2. module superagent.Request
    1. function superagent.Request (method, url)
    2. function superagent.Request.super_ ()
  3. module superagent.Request.prototype
    1. function superagent.Request.prototype._appendQueryString (req)
    2. function superagent.Request.prototype._emitResponse (body, files)
    3. function superagent.Request.prototype._end ()
    4. function superagent.Request.prototype._getFormData ()
    5. function superagent.Request.prototype._isHost (obj)
    6. function superagent.Request.prototype._isResponseOK (res)
    7. function superagent.Request.prototype._pipeContinue (stream, options)
    8. function superagent.Request.prototype._redirect (res)
    9. function superagent.Request.prototype._retry ()
    10. function superagent.Request.prototype._setTimeouts ()
    11. function superagent.Request.prototype._shouldUnzip (res)
    12. function superagent.Request.prototype._timeoutError (reason, timeout, errno)
    13. function superagent.Request.prototype.abort ()
    14. function superagent.Request.prototype.accept (type)
    15. function superagent.Request.prototype.agent (agent)
    16. function superagent.Request.prototype.attach (field, file, options)
    17. function superagent.Request.prototype.auth (user, pass, options)
    18. function superagent.Request.prototype.buffer (val)
    19. function superagent.Request.prototype.ca (cert)
    20. function superagent.Request.prototype.callback (err, res)
    21. function superagent.Request.prototype.catch (cb)
    22. function superagent.Request.prototype.cert (cert)
    23. function superagent.Request.prototype.clearTimeout ()
    24. function superagent.Request.prototype.end (fn)
    25. function superagent.Request.prototype.field (name, val)
    26. function superagent.Request.prototype.get (field)
    27. function superagent.Request.prototype.getHeader (field)
    28. function superagent.Request.prototype.key (cert)
    29. function superagent.Request.prototype.ok (cb)
    30. function superagent.Request.prototype.parse (fn)
    31. function superagent.Request.prototype.pfx (cert)
    32. function superagent.Request.prototype.pipe (stream, options)
    33. function superagent.Request.prototype.query (val)
    34. function superagent.Request.prototype.redirects (n)
    35. function superagent.Request.prototype.request ()
    36. function superagent.Request.prototype.responseType (val)
    37. function superagent.Request.prototype.retry (count)
    38. function superagent.Request.prototype.send (data)
    39. function superagent.Request.prototype.serialize (fn)
    40. function superagent.Request.prototype.set (field, val)
    41. function superagent.Request.prototype.sortQuery (sort)
    42. function superagent.Request.prototype.then (resolve, reject)
    43. function superagent.Request.prototype.timeout (options)
    44. function superagent.Request.prototype.toJSON ()
    45. function superagent.Request.prototype.type (type)
    46. function superagent.Request.prototype.unset (field)
    47. function superagent.Request.prototype.use (fn)
    48. function superagent.Request.prototype.withCredentials (on)
    49. function superagent.Request.prototype.write (data, encoding)
  4. module superagent.Response
    1. function superagent.Response (req)
    2. function superagent.Response.super_ ()
  5. module superagent.Response.prototype
    1. function superagent.Response.prototype._setHeaderProperties (header)
    2. function superagent.Response.prototype._setStatusProperties (status)
    3. function superagent.Response.prototype.destroy (err)
    4. function superagent.Response.prototype.get (field)
    5. function superagent.Response.prototype.pause ()
    6. function superagent.Response.prototype.resume ()
    7. function superagent.Response.prototype.setStatusProperties (status)
    8. function superagent.Response.prototype.toError ()
    9. function superagent.Response.prototype.toJSON ()
  6. module superagent.agent
    1. function superagent.agent (options)
  7. module superagent.agent.prototype
    1. function superagent.agent.prototype._attachCookies (req)
    2. function superagent.agent.prototype._saveCookies (res)
    3. function superagent.agent.prototype.acl (url, fn)
    4. function superagent.agent.prototype.bind (url, fn)
    5. function superagent.agent.prototype.checkout (url, fn)
    6. function superagent.agent.prototype.connect (url, fn)
    7. function superagent.agent.prototype.copy (url, fn)
    8. function superagent.agent.prototype.del (url, fn)
    9. function superagent.agent.prototype.delete (url, fn)
    10. function superagent.agent.prototype.get (url, fn)
    11. function superagent.agent.prototype.head (url, fn)
    12. function superagent.agent.prototype.link (url, fn)
    13. function superagent.agent.prototype.lock (url, fn)
    14. function superagent.agent.prototype.m-search (url, fn)
    15. function superagent.agent.prototype.merge (url, fn)
    16. function superagent.agent.prototype.mkactivity (url, fn)
    17. function superagent.agent.prototype.mkcalendar (url, fn)
    18. function superagent.agent.prototype.mkcol (url, fn)
    19. function superagent.agent.prototype.move (url, fn)
    20. function superagent.agent.prototype.notify (url, fn)
    21. function superagent.agent.prototype.options (url, fn)
    22. function superagent.agent.prototype.patch (url, fn)
    23. function superagent.agent.prototype.post (url, fn)
    24. function superagent.agent.prototype.propfind (url, fn)
    25. function superagent.agent.prototype.proppatch (url, fn)
    26. function superagent.agent.prototype.purge (url, fn)
    27. function superagent.agent.prototype.put (url, fn)
    28. function superagent.agent.prototype.rebind (url, fn)
    29. function superagent.agent.prototype.report (url, fn)
    30. function superagent.agent.prototype.search (url, fn)
    31. function superagent.agent.prototype.subscribe (url, fn)
    32. function superagent.agent.prototype.trace (url, fn)
    33. function superagent.agent.prototype.unbind (url, fn)
    34. function superagent.agent.prototype.unlink (url, fn)
    35. function superagent.agent.prototype.unlock (url, fn)
    36. function superagent.agent.prototype.unsubscribe (url, fn)
  8. module superagent.client
    1. function superagent.client (method, url)
    2. function superagent.client.Request (method, url)
    3. function superagent.client.Response (req)
    4. function superagent.client.del (url, data, fn)
    5. function superagent.client.delete (url, data, fn)
    6. function superagent.client.get (url, data, fn)
    7. function superagent.client.getXHR ()
    8. function superagent.client.head (url, data, fn)
    9. function superagent.client.options (url, data, fn)
    10. function superagent.client.parseString (str)
    11. function superagent.client.patch (url, data, fn)
    12. function superagent.client.post (url, data, fn)
    13. function superagent.client.put (url, data, fn)
    14. function superagent.client.serializeObject (obj)
    15. object superagent.client.parse
    16. object superagent.client.serialize
    17. object superagent.client.types
  9. module superagent.parse
    1. function superagent.parse.image (res, fn)
    2. function superagent.parse.text (res, fn)
  10. module superagent.request_base
    1. function superagent.request_base (obj)
  11. module superagent.request_base.prototype
    1. function superagent.request_base.prototype._isResponseOK (res)
    2. function superagent.request_base.prototype._retry ()
    3. function superagent.request_base.prototype._setTimeouts ()
    4. function superagent.request_base.prototype._timeoutError (reason, timeout, errno)
    5. function superagent.request_base.prototype.abort ()
    6. function superagent.request_base.prototype.catch (cb)
    7. function superagent.request_base.prototype.clearTimeout ()
    8. function superagent.request_base.prototype.field (name, val)
    9. function superagent.request_base.prototype.get (field)
    10. function superagent.request_base.prototype.getHeader (field)
    11. function superagent.request_base.prototype.ok (cb)
    12. function superagent.request_base.prototype.parse (fn)
    13. function superagent.request_base.prototype.redirects (n)
    14. function superagent.request_base.prototype.responseType (val)
    15. function superagent.request_base.prototype.retry (count)
    16. function superagent.request_base.prototype.send (data)
    17. function superagent.request_base.prototype.serialize (fn)
    18. function superagent.request_base.prototype.set (field, val)
    19. function superagent.request_base.prototype.sortQuery (sort)
    20. function superagent.request_base.prototype.then (resolve, reject)
    21. function superagent.request_base.prototype.timeout (options)
    22. function superagent.request_base.prototype.toJSON ()
    23. function superagent.request_base.prototype.unset (field)
    24. function superagent.request_base.prototype.use (fn)
    25. function superagent.request_base.prototype.withCredentials (on)
  12. module superagent.response_base
    1. function superagent.response_base (obj)
  13. module superagent.response_base.prototype
    1. function superagent.response_base.prototype._setHeaderProperties (header)
    2. function superagent.response_base.prototype._setStatusProperties (status)
    3. function superagent.response_base.prototype.get (field)
  14. module superagent.serialize
  15. module superagent.superagent
    1. function superagent.superagent (method, url)
    2. function superagent.superagent.Request (method, url)
    3. function superagent.superagent.Response (req)
    4. function superagent.superagent.del (url, data, fn)
    5. function superagent.superagent.delete (url, data, fn)
    6. function superagent.superagent.get (url, data, fn)
    7. function superagent.superagent.getXHR ()
    8. function superagent.superagent.head (url, data, fn)
    9. function superagent.superagent.options (url, data, fn)
    10. function superagent.superagent.parseString (str)
    11. function superagent.superagent.patch (url, data, fn)
    12. function superagent.superagent.post (url, data, fn)
    13. function superagent.superagent.put (url, data, fn)
    14. function superagent.superagent.serializeObject (obj)
    15. object superagent.superagent.parse
    16. object superagent.superagent.serialize
    17. object superagent.superagent.types
  16. module superagent.utils
    1. function superagent.utils.cleanHeader (header, shouldStripCookie)
    2. function superagent.utils.params (str)
    3. function superagent.utils.parseLinks (str)
    4. function superagent.utils.type (str)

module superagent

function superagent (method, url)

function superagent.Request (method, url)

function superagent.Response (req)

function superagent.acl (url, data, fn)

function superagent.agent (options)

function superagent.checkout (url, data, fn)

function superagent.client (method, url)

function superagent.connect (url, data, fn)

function superagent.copy (url, data, fn)

function superagent.del (url, data, fn)

function superagent.delete (url, data, fn)

function superagent.get (url, data, fn)

function superagent.head (url, data, fn)

function superagent.link (url, data, fn)

function superagent.lock (url, data, fn)

function superagent.m-search (url, data, fn)

function superagent.merge (url, data, fn)

function superagent.mkactivity (url, data, fn)

function superagent.mkcalendar (url, data, fn)

function superagent.mkcol (url, data, fn)

function superagent.move (url, data, fn)

function superagent.notify (url, data, fn)

function superagent.options (url, data, fn)

function superagent.patch (url, data, fn)

function superagent.post (url, data, fn)

function superagent.propfind (url, data, fn)

function superagent.proppatch (url, data, fn)

function superagent.purge (url, data, fn)

function superagent.put (url, data, fn)

function superagent.rebind (url, data, fn)

function superagent.report (url, data, fn)

function superagent.request_base (obj)

function superagent.response_base (obj)

function superagent.search (url, data, fn)

function superagent.subscribe (url, data, fn)

function superagent.trace (url, data, fn)

function superagent.unbind (url, data, fn)

function superagent.unlink (url, data, fn)

function superagent.unlock (url, data, fn)

function superagent.unsubscribe (url, data, fn)

module superagent.Request

function superagent.Request (method, url)

function superagent.Request.super_ ()

module superagent.Request.prototype

function superagent.Request.prototype._appendQueryString (req)

function superagent.Request.prototype._emitResponse (body, files)

function superagent.Request.prototype._end ()

function superagent.Request.prototype._getFormData ()

function superagent.Request.prototype._isHost (obj)

function superagent.Request.prototype._isResponseOK (res)

function superagent.Request.prototype._pipeContinue (stream, options)

function superagent.Request.prototype._redirect (res)

function superagent.Request.prototype._retry ()

function superagent.Request.prototype._setTimeouts ()

function superagent.Request.prototype._shouldUnzip (res)

function superagent.Request.prototype._timeoutError (reason, timeout, errno)

function superagent.Request.prototype.abort ()

function superagent.Request.prototype.accept (type)

function superagent.Request.prototype.agent (agent)

function superagent.Request.prototype.attach (field, file, options)

function superagent.Request.prototype.auth (user, pass, options)

function superagent.Request.prototype.buffer (val)

function superagent.Request.prototype.ca (cert)

function superagent.Request.prototype.callback (err, res)

function superagent.Request.prototype.catch (cb)

function superagent.Request.prototype.cert (cert)

function superagent.Request.prototype.clearTimeout ()

function superagent.Request.prototype.end (fn)

function superagent.Request.prototype.field (name, val)

function superagent.Request.prototype.get (field)

function superagent.Request.prototype.getHeader (field)

function superagent.Request.prototype.key (cert)

function superagent.Request.prototype.ok (cb)

function superagent.Request.prototype.parse (fn)

function superagent.Request.prototype.pfx (cert)

function superagent.Request.prototype.pipe (stream, options)

function superagent.Request.prototype.query (val)

function superagent.Request.prototype.redirects (n)

function superagent.Request.prototype.request ()

function superagent.Request.prototype.responseType (val)

function superagent.Request.prototype.retry (count)

function superagent.Request.prototype.send (data)

function superagent.Request.prototype.serialize (fn)

function superagent.Request.prototype.set (field, val)

function superagent.Request.prototype.sortQuery (sort)

function superagent.Request.prototype.then (resolve, reject)

function superagent.Request.prototype.timeout (options)

function superagent.Request.prototype.toJSON ()

function superagent.Request.prototype.type (type)

function superagent.Request.prototype.unset (field)

function superagent.Request.prototype.use (fn)

function superagent.Request.prototype.withCredentials (on)

function superagent.Request.prototype.write (data, encoding)

module superagent.Response

function superagent.Response (req)

function superagent.Response.super_ ()

module superagent.Response.prototype

function superagent.Response.prototype._setHeaderProperties (header)

function superagent.Response.prototype._setStatusProperties (status)

function superagent.Response.prototype.destroy (err)

function superagent.Response.prototype.get (field)

function superagent.Response.prototype.pause ()

function superagent.Response.prototype.resume ()

function superagent.Response.prototype.setStatusProperties (status)

function superagent.Response.prototype.toError ()

function superagent.Response.prototype.toJSON ()

module superagent.agent

function superagent.agent (options)

module superagent.agent.prototype

function superagent.agent.prototype._attachCookies (req)

function superagent.agent.prototype._saveCookies (res)

function superagent.agent.prototype.acl (url, fn)

function superagent.agent.prototype.bind (url, fn)

function superagent.agent.prototype.checkout (url, fn)

function superagent.agent.prototype.connect (url, fn)

function superagent.agent.prototype.copy (url, fn)

function superagent.agent.prototype.del (url, fn)

function superagent.agent.prototype.delete (url, fn)

function superagent.agent.prototype.get (url, fn)

function superagent.agent.prototype.head (url, fn)

function superagent.agent.prototype.link (url, fn)

function superagent.agent.prototype.lock (url, fn)

function superagent.agent.prototype.m-search (url, fn)

function superagent.agent.prototype.merge (url, fn)

function superagent.agent.prototype.mkactivity (url, fn)

function superagent.agent.prototype.mkcalendar (url, fn)

function superagent.agent.prototype.mkcol (url, fn)

function superagent.agent.prototype.move (url, fn)

function superagent.agent.prototype.notify (url, fn)

function superagent.agent.prototype.options (url, fn)

function superagent.agent.prototype.patch (url, fn)

function superagent.agent.prototype.post (url, fn)

function superagent.agent.prototype.propfind (url, fn)

function superagent.agent.prototype.proppatch (url, fn)

function superagent.agent.prototype.purge (url, fn)

function superagent.agent.prototype.put (url, fn)

function superagent.agent.prototype.rebind (url, fn)

function superagent.agent.prototype.report (url, fn)

function superagent.agent.prototype.search (url, fn)

function superagent.agent.prototype.subscribe (url, fn)

function superagent.agent.prototype.trace (url, fn)

function superagent.agent.prototype.unbind (url, fn)

function superagent.agent.prototype.unlink (url, fn)

function superagent.agent.prototype.unlock (url, fn)

function superagent.agent.prototype.unsubscribe (url, fn)

module superagent.client

function superagent.client (method, url)

function superagent.client.Request (method, url)

function superagent.client.Response (req)

function superagent.client.del (url, data, fn)

function superagent.client.delete (url, data, fn)

function superagent.client.get (url, data, fn)

function superagent.client.getXHR ()

function superagent.client.head (url, data, fn)

function superagent.client.options (url, data, fn)

function superagent.client.parseString (str)

function superagent.client.patch (url, data, fn)

function superagent.client.post (url, data, fn)

function superagent.client.put (url, data, fn)

function superagent.client.serializeObject (obj)

module superagent.parse

function superagent.parse.image (res, fn)

function superagent.parse.text (res, fn)

module superagent.request_base

function superagent.request_base (obj)

module superagent.request_base.prototype

function superagent.request_base.prototype._isResponseOK (res)

function superagent.request_base.prototype._retry ()

function superagent.request_base.prototype._setTimeouts ()

function superagent.request_base.prototype._timeoutError (reason, timeout, errno)

function superagent.request_base.prototype.abort ()

function superagent.request_base.prototype.catch (cb)

function superagent.request_base.prototype.clearTimeout ()

function superagent.request_base.prototype.field (name, val)

function superagent.request_base.prototype.get (field)

function superagent.request_base.prototype.getHeader (field)

function superagent.request_base.prototype.ok (cb)

function superagent.request_base.prototype.parse (fn)

function superagent.request_base.prototype.redirects (n)

function superagent.request_base.prototype.responseType (val)

function superagent.request_base.prototype.retry (count)

function superagent.request_base.prototype.send (data)

function superagent.request_base.prototype.serialize (fn)

function superagent.request_base.prototype.set (field, val)

function superagent.request_base.prototype.sortQuery (sort)

function superagent.request_base.prototype.then (resolve, reject)

function superagent.request_base.prototype.timeout (options)

function superagent.request_base.prototype.toJSON ()

function superagent.request_base.prototype.unset (field)

function superagent.request_base.prototype.use (fn)

function superagent.request_base.prototype.withCredentials (on)

module superagent.response_base

function superagent.response_base (obj)

module superagent.response_base.prototype

function superagent.response_base.prototype._setHeaderProperties (header)

function superagent.response_base.prototype._setStatusProperties (status)

function superagent.response_base.prototype.get (field)

module superagent.serialize

module superagent.superagent

function superagent.superagent (method, url)

function superagent.superagent.Request (method, url)

function superagent.superagent.Response (req)

function superagent.superagent.del (url, data, fn)

function superagent.superagent.delete (url, data, fn)

function superagent.superagent.get (url, data, fn)

function superagent.superagent.getXHR ()

function superagent.superagent.head (url, data, fn)

function superagent.superagent.options (url, data, fn)

function superagent.superagent.parseString (str)

function superagent.superagent.patch (url, data, fn)

function superagent.superagent.post (url, data, fn)

function superagent.superagent.put (url, data, fn)

function superagent.superagent.serializeObject (obj)

module superagent.utils

function superagent.utils.cleanHeader (header, shouldStripCookie)

function superagent.utils.params (str)

function superagent.utils.parseLinks (str)

function superagent.utils.type (str)

[ this document was created with utility2 ]