Class: RequestProgress
transport.RequestProgress
Hierarchy
-
↳
RequestProgress
Constructors
constructor
• new RequestProgress()
Inherited from
Properties
_downloadProgress
• Private
_downloadProgress: Progress
Defined in
_error
• Private
Optional
_error: Error
Defined in
_rejectCompleted
• Private
_rejectCompleted: (err
:
Error
) => void
Type declaration
▸ (err
): void
Parameters
Name | Type |
---|---|
err |
Error |
Returns
void
Defined in
_resolveCompleted
• Private
_resolveCompleted: () => void
Type declaration
▸ (): void
Returns
void
Defined in
_uploadProgress
• Private
_uploadProgress: Progress
Defined in
completed
• completed: Promise
<void
>
Defined in
Accessors
downloadProgress
• get
downloadProgress(): Progress
Returns
Progress
Defined in
• set
downloadProgress(progress
): void
Parameters
Name | Type |
---|---|
progress |
Progress |
Returns
void
Defined in
error
• get
error(): undefined
| Error
Returns
undefined
| Error
Defined in
• set
error(error
): void
Parameters
Name | Type |
---|---|
error |
undefined | Error |
Returns
void
Defined in
progress
• get
progress(): Object
Returns
Object
Name | Type |
---|---|
loaded |
number |
total |
number |
Defined in
uploadProgress
• get
uploadProgress(): Progress
Returns
Progress
Defined in
• set
uploadProgress(progress
): void
Parameters
Name | Type |
---|---|
progress |
Progress |
Returns
void
Defined in
Methods
addEventListener
▸ addEventListener(eventName
, listener
): void
Parameters
Name | Type |
---|---|
eventName |
string |
listener |
Listener |
Returns
void
Inherited from
Defined in
complete
▸ complete(): void
Returns
void
Defined in
dispatch
▸ dispatch(type
, detail?
): void
Parameters
Name | Type |
---|---|
type |
string |
detail? |
any |
Returns
void
Inherited from
Defined in
dispatchEvent
▸ dispatchEvent(e
): void
Parameters
Name | Type |
---|---|
e |
Event |
Returns
void
Inherited from
Defined in
removeEventListener
▸ removeEventListener(eventName
, listener
): void
Parameters
Name | Type |
---|---|
eventName |
string |
listener |
Listener |
Returns
void
Inherited from
EventEmitter.removeEventListener