-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClientRequestEventType.hx
61 lines (57 loc) · 1.65 KB
/
ClientRequestEventType.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package eventtypes.electron;
/**
Auto generated from electron 2.0.2 api docs.
**/
enum abstract ClientRequestEventType(String) to String
#if hxnodejs to js.node.events.EventEmitter.Event<haxe.Constraints.Function> #end
{
/**
Returns:
- `response` IncomingMessage
**/
var Response = "response";
/**
Emitted when an authenticating proxy is asking for user credentials.
The callback function is expected to be called back with user
credentials: Providing empty credentials will cancel the request and
report an authentication error on the response object:
Returns:
- `authInfo` Object
- `callback` Function
**/
var Login = "login";
/**
Emitted just after the last chunk of the request's data has been
written into the request object.
**/
var Finish = "finish";
/**
Emitted when the request is aborted. The abort event will not be fired
if the request is already closed.
**/
var Abort = "abort";
/**
Emitted when the net module fails to issue a network request. Typically
when the request object emits an error event, a close event will
subsequently follow and no response object will be provided.
Returns:
- `error` Error
**/
var Error = "error";
/**
Emitted as the last event in the HTTP request-response transaction. The
close event indicates that no more events will be emitted on either the
request or response objects.
**/
var Close = "close";
/**
Emitted when there is redirection and the mode is manual. Calling
request.followRedirect will continue with the redirection.
Returns:
- `statusCode` Integer
- `method` String
- `redirectUrl` String
- `responseHeaders` Object
**/
var Redirect = "redirect";
}