APIServer constructor

APIServer(
  1. APIRoot apiRoot,
  2. String address,
  3. int port, {
  4. String? name = 'Bones_API',
  5. String? version = BonesAPI.VERSION,
  6. int? securePort,
  7. bool letsEncrypt = false,
  8. bool? letsEncryptProduction,
  9. bool? allowRequestLetsEncryptCertificate,
  10. Object? letsEncryptDirectory,
  11. bool hotReload = false,
  12. Object? documentRoot,
  13. Object? domains,
  14. bool cookieless = false,
  15. bool? useSessionID,
  16. int? totalWorkers = 1,
  17. String? apiCacheControl,
  18. String? staticFilesCacheControl,
  19. bool? cacheStaticFilesResponses,
  20. Duration? serverResponseDelay,
  21. bool? logToConsole,
  22. bool? logQueue,
})

Implementation

APIServer(
  super.apiRoot,
  String address,
  int port, {
  super.name = 'Bones_API',
  super.version = BonesAPI.VERSION,
  super.securePort,
  super.letsEncrypt,
  super.letsEncryptProduction,
  super.allowRequestLetsEncryptCertificate,
  super.letsEncryptDirectory,
  super.hotReload,
  super.documentRoot,
  super.domains,
  super.cookieless,
  super.useSessionID,
  super.totalWorkers,
  super.apiCacheControl,
  super.staticFilesCacheControl,
  super.cacheStaticFilesResponses,
  super.serverResponseDelay,
  super.logToConsole,
  super.logQueue,
}) : super(address: address, port: port);