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 pathServer.cs
More file actions
54 lines (41 loc) · 1.74 KB
/
Server.cs
File metadata and controls
54 lines (41 loc) · 1.74 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
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using NodeJS.BufferModule;
using NodeJS.EventsModule;
using NodeJS.HttpModule;
using NodeJS.NetModule;
namespace NodeJS.HttpsModule {
[Imported]
[ModuleName("https")]
[IgnoreNamespace]
public class Server : TlsModule.Server {
private Server() {}
public event Action<ServerRequest, ServerResponse> OnRequest {
[InlineCode("{this}.addListener('request', {value})")] add {}
[InlineCode("{this}.removeListener('request', {value})")] remove {}
}
[InlineCode("{this}.once('request', {callback})")]
public void OnceRequest(Action<ServerRequest, ServerResponse> callback) {}
public event Action<ServerRequest, ServerResponse> OnCheckContinue {
[InlineCode("{this}.addListener('checkContinue', {value})")] add {}
[InlineCode("{this}.removeListener('checkContinue', {value})")] remove {}
}
[InlineCode("{this}.once('checkContinue', {callback})")]
public void OnceCheckContinue(Action<ServerRequest, ServerResponse> callback) {}
public new event Action<ServerRequest, Socket, Buffer> OnConnect {
[InlineCode("{this}.addListener('connect', {value})")] add {}
[InlineCode("{this}.removeListener('connect', {value})")] remove {}
}
[InlineCode("{this}.once('connect', {callback})")]
public void OnceConnect(Action<ServerRequest, Socket, Buffer> callback) {}
public event Action<ServerRequest, Socket, Buffer> OnUpgrade {
[InlineCode("{this}.addListener('upgrade', {value})")] add {}
[InlineCode("{this}.removeListener('upgrade', {value})")] remove {}
}
[InlineCode("{this}.once('upgrade', {callback})")]
public void OnceUpgrade(Action<ServerRequest, Socket, Buffer> callback) {}
}
}