This repository has been archived on 2023-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
hamakaze/Hamakaze/Headers/HttpConnectionHeader.cs

19 lines
561 B
C#
Raw Normal View History

2022-04-06 09:25:49 +00:00
using System;
namespace Hamakaze.Headers {
public class HttpConnectionHeader : HttpHeader {
public const string NAME = @"Connection";
public override string Name => NAME;
public override object Value { get; }
public const string CLOSE = @"close";
public const string KEEP_ALIVE = @"keep-alive";
2022-04-09 22:34:05 +00:00
public const string UPGRADE = @"upgrade";
2022-04-06 09:25:49 +00:00
public HttpConnectionHeader(string mode) {
2022-04-09 22:34:05 +00:00
Value = (mode ?? throw new ArgumentNullException(nameof(mode))).ToLowerInvariant();
2022-04-06 09:25:49 +00:00
}
}
}