remove some useless code form http low level; delay normal connection close, to let client do it instead

This commit is contained in:
UbitUmarov
2020-04-21 00:13:02 +01:00
parent c097f148dd
commit 43fdbf87d4
7 changed files with 61 additions and 92 deletions

View File

@@ -29,6 +29,7 @@ namespace OSHttpServer
bool CanSend();
bool IsSending();
bool IsClosing {get ;}
/// <summary>
/// Disconnect from client
@@ -95,7 +96,7 @@ namespace OSHttpServer
void StartSendResponse(HttpResponse response);
void ContinueSendResponse(bool notThrottled);
void EndSendResponse(uint requestID, ConnectionType connection);
Task EndSendResponse(uint requestID, ConnectionType connection);
bool TrySendResponse(int limit);
}