Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/forwardemail/superagent
/ functions
Functions
109 in github.com/forwardemail/superagent
⨍
Functions
109
◇
Types & classes
6
↓ 47 callers
Method
end
(data)
src/node/http2wrapper.js:186
↓ 26 callers
Function
getSetup
()
test/support/setup.js:9
↓ 12 callers
Method
pipe
(stream, options)
src/node/http2wrapper.js:181
↓ 7 callers
Method
abort
(data)
src/node/http2wrapper.js:191
↓ 6 callers
Method
write
(data, encoding)
src/node/http2wrapper.js:176
↓ 5 callers
Function
request
(method, url)
src/node/index.js:30
↓ 4 callers
Method
getFrame
()
src/node/http2wrapper.js:88
↓ 4 callers
Method
setHeader
(name, value)
src/node/http2wrapper.js:168
↓ 3 callers
Method
getHeader
(name)
src/node/http2wrapper.js:172
↓ 3 callers
Function
parse
(string_, object)
test/client/serialize.js:16
↓ 2 callers
Function
_initHeaders
* Initialize internal header tracking properties on a request instance. * * @param {Object} req the instance * @api private
src/node/index.js:311
↓ 2 callers
Method
_setDefaults
(request)
src/agent-base.js:31
↓ 2 callers
Function
countClientSockets
()
test/node/request-dispose.js:9
↓ 2 callers
Function
isJSON
* Check if `mime` is json or has +json structured syntax suffix. * * @param {String} mime * @return {Boolean} * @api private
src/node/index.js:1808
↓ 2 callers
Function
isRedirect
* Check if we should follow the redirect `code`. * * @param {Number} code * @return {Boolean} * @api private
src/node/index.js:1822
↓ 2 callers
Function
serialize
* Serialize the given `obj`. * * @param {Object} obj * @return {String} * @api private
src/client.js:88
↓ 1 callers
Method
_attachCookies
* Attach cookies when available to the given `req`. * * @param {Request} req * @api private
src/node/agent.js:139
↓ 1 callers
Function
acceptParameters
* Parse accept params `str` returning an * object with `.value`, `.quality` and `.params`. * also includes `.originalIndex` for stable sorting * *
test/support/express/utils.js:98
↓ 1 callers
Function
assertDisposed
(nodeRequest)
test/node/request-dispose.js:19
↓ 1 callers
Function
bufferToChunks
(buffer)
src/node/index.js:1636
↓ 1 callers
Function
check
()
test/node/request-dispose.js:45
↓ 1 callers
Function
close
(server_)
test/node/security.js:67
↓ 1 callers
Function
completeAbortedResponse
()
src/node/index.js:1575
↓ 1 callers
Function
createETagGenerator
* Create an ETag generator function, generating ETags with * the given options. * * @param {object} options * @return {function} * @private
test/support/express/utils.js:257
↓ 1 callers
Function
defaultCookiePath
(pathname)
src/node/agent.js:12
↓ 1 callers
Function
defineGetter
* Helper function for creating a getter on an object. * * @param {Object} obj * @param {String} name * @param {Function} getter * @private
test/support/express/requestDecorator.js:496
↓ 1 callers
Function
disposeNodeRequest
* Close an underlying Node request/session created during setup. * * Used when header application or later request-path work throws after * `http.r
src/node/index.js:74
↓ 1 callers
Function
domainMatches
* Whether `requestHost` domain-matches the cookie `domain` attribute * (RFC 6265 Section 5.1.3). IP addresses only match themselves. * * @param {St
src/node/agent.js:26
↓ 1 callers
Function
endError
(request_)
test/node/request-dispose.js:81
↓ 1 callers
Function
filterCookiesForHost
* Filter Set-Cookie values so that a server can only set cookies for itself. * * `cookiejar` stores any explicit `Domain` attribute as given, which
src/node/agent.js:51
↓ 1 callers
Function
getFreePort
(fn)
test/node/network-error.js:7
↓ 1 callers
Function
getFullPath
(filename)
test/node/multipart.js:16
↓ 1 callers
Function
getProgressMonitor
()
src/node/index.js:1616
↓ 1 callers
Function
hasNonEmptyResponseContent
(res)
src/node/index.js:1826
↓ 1 callers
Function
isAllowedRedirectTarget
* Whether a redirect from `current` to `target` may be followed. * * Only http(s) targets are followed. A remote server must never be able to * ste
src/node/index.js:193
↓ 1 callers
Function
isBinary
(mime)
src/node/index.js:1790
↓ 1 callers
Function
isJSON
* Check if `mime` is json or has +json structured syntax suffix. * * @param {String} mime * @return {Boolean} * @api private
src/client.js:273
↓ 1 callers
Function
isSameOrigin
* Whether two URLs share an origin. Unix socket URLs have an opaque (`null`) * WHATWG origin, so they are compared by protocol and socket path instea
src/node/index.js:213
↓ 1 callers
Function
isText
* Check if `mime` is text and should be buffered. * * @param {String} mime * @return {Boolean} * @api public
src/node/index.js:1777
↓ 1 callers
Function
listen
(handler)
test/node/request-dispose.js:68
↓ 1 callers
Function
listen
(server_, target)
test/node/security.js:49
↓ 1 callers
Function
lookupType
* Map a short type name through `request.types`, falling back to the name * itself. Only own entries count: a name such as "constructor" must not *
src/client.js:195
↓ 1 callers
Method
mapToHttp2Header
(headers)
src/node/http2wrapper.js:145
↓ 1 callers
Method
mapToHttpHeader
(headers)
src/node/http2wrapper.js:122
↓ 1 callers
Function
normalizeIpv6Host
(host)
src/node/http2wrapper.js:25
↓ 1 callers
Function
onaborted
()
test/support/express/responseDecorator.js:893
↓ 1 callers
Function
onerror
(error)
test/support/express/responseDecorator.js:913
↓ 1 callers
Function
parseHeader
* Parse the given header `str` into * an object containing the mapped fields. * * @param {String} str * @return {Object} * @api private
src/client.js:240
↓ 1 callers
Function
preserveDotSegments
* Preserve dot-only path segments that WHATWG URL normalizes away. * * @param {String} urlString * @returns {{urlString: String, restorePath: Funct
src/node/index.js:124
↓ 1 callers
Function
pushEncodedKeyValuePair
* Helps 'serialize' with serializing arrays. * Mutates the pairs array. * * @param {Array} pairs * @param {String} key * @param {Mixed} val
src/client.js:107
↓ 1 callers
Function
read
(file)
test/node/multipart.js:12
↓ 1 callers
Function
sendfile
(res, file, options, callback)
test/support/express/responseDecorator.js:888
↓ 1 callers
Function
serialize
(object, res)
test/client/serialize.js:5
↓ 1 callers
Function
serveImageWithType
(res, type)
test/support/server.js:518
↓ 1 callers
Method
setNoDelay
(bool)
src/node/http2wrapper.js:82
↓ 1 callers
Function
stringify
* Stringify JSON, like JSON.stringify, but v8 optimized, with the * ability to escape characters that can trigger HTML sniffing. * * @param {*} val
test/support/express/responseDecorator.js:993
↓ 1 callers
Function
uniqid
()
test/retry.js:6
↓ 1 callers
Function
waitForNoNewSockets
(before, timeoutMs = 500)
test/node/request-dispose.js:37
↓ 1 callers
Function
withDefaultProtocol
* Default a scheme-less URL string to http://. * * @param {String} urlString * @return {String} * @api private
src/node/index.js:168
Function
'application/x-www-form-urlencoded'
(object)
src/client.js:209
Function
'application/x-www-form-urlencoded'
(object)
src/node/index.js:262
Function
NewRequest
(...args)
test/use.js:61
Function
Request
* Initialize a new `Request` with the given `method` and `url`. * * @param {String} method * @param {String} url * @api public
src/client.js:427
Function
Request
* Initialize a new `Request` with the given `method` and `url`. * * @param {String} method * @param {String|Object} url * @api public
src/node/index.js:328
Function
RequestBase
* Initialize a new `RequestBase`. * * @api public
src/request-base.js:18
Function
Response
* Initialize a new `Response` with the given `xhr`. * * - set flags (.ok, .error, etc) * - parse header * * Examples: * * Aliasing `superage
src/client.js:325
Function
Response
* Initialize a new `Response` with the given `xhr`. * * - set flags (.ok, .error, etc) * - parse header * * @param {Request} req * @param {Obj
src/node/response.js:30
Function
ResponseBase
* Initialize a new `ResponseBase`. * * @api public
src/response-base.js:19
Method
_destroy
(error, callback)
src/node/http2wrapper.js:197
Method
_saveCookies
* Save the cookies in the given `res` to * the agent's cookie jar for persistence. * * @param {Response} res * @api private
src/node/agent.js:118
Function
addRequest
()
test/node/basic.js:332
Function
apply
(target, thisArg, argumentsList)
src/client.js:912
Function
apply
(target, thisArgument, argumentsList)
src/node/agent.js:176
Method
constructor
()
src/agent-base.js:27
Method
constructor
(protocol, options)
src/node/http2wrapper.js:30
Method
constructor
(options)
src/node/agent.js:83
Function
createApp
()
test/support/express/index.js:16
Method
createUnixConnection
(authority, options)
src/node/http2wrapper.js:68
Function
default
()
test/support/express/responseDecorator.js:815
Function
del
* DELETE `url` with optional `data` and callback `fn(res)`. * * @param {String} url * @param {Mixed} [data] * @param {Function} [fn] * @return {R
src/client.js:1017
Function
emitDrain
()
src/node/index.js:1068
Function
encoder
(string)
src/node/index.js:829
Function
get
()
src/node/response.js:53
Function
handleProgress
(direction, e)
src/client.js:808
Function
handleResponse
(res)
src/node/index.js:1354
Function
html
()
test/support/express/responseDecorator.js:803
Function
myLookup
(hostname, options, callback)
test/node/lookup.js:9
Function
noop
* Noop.
src/client.js:32
Function
noop
* Noop.
src/node/index.js:63
Function
ondirectory
()
test/support/express/responseDecorator.js:903
Function
onend
()
test/support/express/responseDecorator.js:920
Function
onfile
()
test/support/express/responseDecorator.js:927
Function
onfinish
(error)
test/support/express/responseDecorator.js:932
Function
onstream
()
test/support/express/responseDecorator.js:950
Function
parseExtendedQueryString
* Parse an extended query string with qs. * * @return {Object} * @private
test/support/express/utils.js:272
Function
parseString
* Parse the given x-www-form-urlencoded `str`. * * @param {String} str * @return {Object} * @api private
src/client.js:142
Function
prefix
(request_)
test/use.js:24
Function
read
()
test/node/pipe.js:97
Function
request
(options)
src/node/http2wrapper.js:19
Function
restorePath
(path)
src/node/index.js:131
next →
1–100 of 109, ranked by callers