sharp-chat/Hamakaze/Headers/HttpConnectionHeader.cs

18 lines
490 B
C#
Raw Normal View History

2022-08-30 15:00:58 +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";
public HttpConnectionHeader(string mode) {
Value = mode ?? throw new ArgumentNullException(nameof(mode));
}
}
}