Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
superagent
Request
Interface Request
Index
Methods
abort
attach
auth
buffer
clearTimeout
end
field
get
part
pipe
query
redirects
send
set
timeout
type
write
Methods
public
abort
(
)
public
attach
(
field
:
string
, file
:
string
, filename
:
string
)
:
Request
Parameters
field:
string
file:
string
filename:
string
Returns
Request
public
auth
(
user
:
string
, name
:
string
)
:
Request
Parameters
user:
string
name:
string
Returns
Request
public
buffer
(
val
:
boolean
)
:
Request
Parameters
val:
boolean
Returns
Request
public
clearTimeout
(
)
:
Request
Returns
Request
public
end
(
callback
?:
(err: Error, res: "superagent".Response) => void
)
:
Request
Parameters
callback?:
(err: Error, res: "superagent".Response) => void
optional
Returns
Request
public
field
(
name
:
string
, val
:
string
)
:
Request
Parameters
name:
string
val:
string
Returns
Request
public
get
(
field
:
string
)
:
string
Parameters
field:
string
Returns
string
public
part
(
)
:
Request
Returns
Request
public
pipe
(
stream
:
WritableStream
, options
?:
Object
)
:
Writable
Parameters
stream:
WritableStream
options?:
Object
optional
Returns
Writable
public
query
(
val
:
Object
)
:
Request
Parameters
val:
Object
Returns
Request
public
redirects
(
n
:
number
)
:
Request
Parameters
n:
number
Returns
Request
public
send
(
data
:
string
)
:
Request
Parameters
data:
string
Returns
Request
public
send
(
data
:
Object
)
:
Request
Parameters
data:
Object
Returns
Request
public
set
(
field
:
string
, val
:
string
)
:
Request
Parameters
field:
string
val:
string
Returns
Request
public
set
(
field
:
Object
)
:
Request
Parameters
field:
Object
Returns
Request
public
timeout
(
ms
:
number
)
:
Request
Parameters
ms:
number
Returns
Request
public
type
(
val
:
string
)
:
Request
Parameters
val:
string
Returns
Request
public
write
(
data
:
string
, encoding
:
string
)
:
boolean
Parameters
data:
string
encoding:
string
Returns
boolean
public
write
(
data
:
Buffer
, encoding
:
string
)
:
boolean
Parameters
data:
Buffer
encoding:
string
Returns
boolean
Globals
NodeJS
assert
buffer
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
net
os
path
punycode
querystring
readline
repl
simple-cw-node
stream
string_decoder
superagent
tls
tty
url
util
vm
zlib
Agent
Request
abort
attach
auth
buffer
clearTimeout
end
field
get
part
pipe
query
redirects
send
set
timeout
type
write
Response
agent