private void SendResponse(Connection connection, StatusCodes statusCode) { using (var writer = new HttpMessageWriter()) { writer.WriteEmptyResponse(statusCode); SendWriter(connection, writer); } }
private void SendEmptyMessage(Session session) { using (var writer = new HttpMessageWriter()) { writer.WriteEmptyResponse(StatusCodes.OK); SendWriter(session, writer); } }