AngelHttp2.custom constructor
AngelHttp2.custom(
- Angel app,
- SecurityContext ctx,
- Future<
SecureServerSocket> serverGenerator(- InternetAddress? address,
- int port,
- SecurityContext ctx
- bool useZone = true,
- bool allowHttp1 = false,
- ServerSettings? settings,
Implementation
factory AngelHttp2.custom(
Angel app,
SecurityContext ctx,
Future<SecureServerSocket> Function(
InternetAddress? address, int port, SecurityContext ctx)
serverGenerator,
{bool useZone = true,
bool allowHttp1 = false,
ServerSettings? settings}) {
return AngelHttp2._(app, (address, port) {
var addr = address is InternetAddress
? address
: InternetAddress(address.toString());
return Future.sync(() => serverGenerator(addr, port, ctx));
}, useZone, allowHttp1, settings);
}