This repository was archived by the owner on Mar 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathClientRequest.cs
More file actions
72 lines (50 loc) · 2.14 KB
/
ClientRequest.cs
File metadata and controls
72 lines (50 loc) · 2.14 KB
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
62
63
64
65
66
67
68
69
70
71
72
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
using NodeJS.BufferModule;
using NodeJS.NetModule;
namespace NodeJS.HttpModule {
[Imported]
[ModuleName("http")]
[IgnoreNamespace]
public class ClientRequest : WritableStream {
private ClientRequest() {}
public void Abort() {}
public void SetTimeout(int timeout) {}
public void SetTimeout(int timeout, Action timeoutListener) {}
public void SetNoDelay(bool noDelay) {}
public void SetSocketKeepAlive(bool enable) {}
public void SetSocketKeepAlive(bool enable, int initialDelay) {}
public event Action<ClientResponse> OnResponse {
[InlineCode("{this}.addListener('response', {value})")] add {}
[InlineCode("{this}.removeListener('response', {value})")] remove {}
}
[InlineCode("{this}.once('response', {callback})")]
public void OnceRequest(Action<ClientResponse> callback) {}
public event Action<ClientResponse> OnSocket {
[InlineCode("{this}.addListener('socket', {value})")] add {}
[InlineCode("{this}.removeListener('socket', {value})")] remove {}
}
[InlineCode("{this}.once('socket', {callback})")]
public void OnceSocket(Action<ClientResponse> callback) {}
public event Action<ClientResponse, Socket, Buffer> OnConnect {
[InlineCode("{this}.addListener('connect', {value})")] add {}
[InlineCode("{this}.removeListener('connect', {value})")] remove {}
}
[InlineCode("{this}.once('connect', {callback})")]
public void OnceConnect(Action<ClientResponse, Socket, Buffer> callback) {}
public event Action<ClientResponse, Socket, Buffer> OnUpgrade {
[InlineCode("{this}.addListener('upgrade', {value})")] add {}
[InlineCode("{this}.removeListener('upgrade', {value})")] remove {}
}
[InlineCode("{this}.once('upgrade', {callback})")]
public void OnceUpgrade(Action<ClientResponse, Socket, Buffer> callback) {}
public event Action OnContinue {
[InlineCode("{this}.addListener('continue', {value})")] add {}
[InlineCode("{this}.removeListener('continue', {value})")] remove {}
}
[InlineCode("{this}.once('continue', {callback})")]
public void OnceContinue(Action callback) {}
}
}