2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00

ClassId Attribute

This commit is contained in:
2022-09-03 22:00:26 +03:00
parent 2cf0d59e6b
commit 620dbaf653
8 changed files with 45 additions and 21 deletions

View File

@ -115,14 +115,14 @@ public class HTTPResponsePacket : Packet
}
}
public StringKeyList Headers = new StringKeyList(true);
public string Version = "HTTP/1.1";
public StringKeyList Headers { get; } = new StringKeyList(true);
public string Version { get; set; } = "HTTP/1.1";
public byte[] Message;
public ResponseCode Number;
public ResponseCode Number { get; set; } = ResponseCode.OK;
public string Text;
public List<HTTPCookie> Cookies = new List<HTTPCookie>();
public List<HTTPCookie> Cookies { get; } = new List<HTTPCookie>();
public bool Handled;
public override string ToString()
@ -206,8 +206,6 @@ public class HTTPResponsePacket : Packet
if (headerSize == 0)
return -1;
//Cookies = new DStringDictionary();
//Headers = new DStringDictionary(true);
sMethod = sLines[0].Split(' ');