localhost static method
Creates Server From Localhost
Implementation
static Future<Server> localhost(String id,
{bool withNumbers = false,
bool isHttp = true,
Map<String, dynamic>? defaultHeader,
Map<String, dynamic>? defaultBody}) async {
CookieHandler cookieHandler = CookieHandler(id);
await cookieHandler.loadCookies();
return Server(id, withNumbers ? "127.0.0.1" : "localhost", -1, isHttp,
cookieHandler, defaultHeader ?? {}, defaultBody ?? {});
}