/// What one GET of a server's web login page found. /// /// [status] is the HTTP status when the page answered, null when the request /// failed; [failure] then says why in words. [loginPage] is true when a 200 /// body is the Pipelines sign-in form rather than some other service on that /// port. class LoginProbe { const LoginProbe({this.status, this.failure, this.loginPage = false}); final int? status; final String? failure; final bool loginPage; /// The Pipelines sign-in form's markers (web/serve.mjs loginPage). static bool isPipelinesLogin(String body) => body.contains('action="/login"') && body.contains('name="password"'); }