-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathConnection.cs
More file actions
25 lines (19 loc) · 626 Bytes
/
Connection.cs
File metadata and controls
25 lines (19 loc) · 626 Bytes
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
namespace GenHTTP.Api.Protocol;
// todo: re-visit
public enum Connection
{
/// <summary>
/// The server will keep the connection open and wait for another request (default).
/// </summary>
KeepAlive,
/// <summary>
/// The server will close the connection after the response has been sent.
/// </summary>
Close,
/// <summary>
/// The server will instruct the client to upgrade to another protocol by sending
/// the configured response and will close the connection after the response content
/// has been sent.
/// </summary>
Upgrade
}