hotstaq 0.5.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/.eslintignore +17 -0
  2. package/.eslintrc.js +11 -0
  3. package/.vscode/launch.json +199 -0
  4. package/.vscode/settings.json +2 -0
  5. package/.vscode/tasks.json +78 -0
  6. package/CONTRIBUTING.md +157 -0
  7. package/README.md +126 -0
  8. package/bin/hotstaq +3 -0
  9. package/bin/hotstaq.cmd +1 -0
  10. package/build/src/Hot.d.ts +167 -0
  11. package/build/src/Hot.d.ts.map +1 -0
  12. package/build/src/Hot.js +365 -0
  13. package/build/src/Hot.js.map +1 -0
  14. package/build/src/HotAPI.d.ts +130 -0
  15. package/build/src/HotAPI.d.ts.map +1 -0
  16. package/build/src/HotAPI.js +353 -0
  17. package/build/src/HotAPI.js.map +1 -0
  18. package/build/src/HotAgentAPI.d.ts +22 -0
  19. package/build/src/HotAgentAPI.d.ts.map +1 -0
  20. package/build/src/HotAgentAPI.js +85 -0
  21. package/build/src/HotAgentAPI.js.map +1 -0
  22. package/build/src/HotAgentRoute.d.ts +17 -0
  23. package/build/src/HotAgentRoute.d.ts.map +1 -0
  24. package/build/src/HotAgentRoute.js +109 -0
  25. package/build/src/HotAgentRoute.js.map +1 -0
  26. package/build/src/HotBuilder.d.ts +52 -0
  27. package/build/src/HotBuilder.d.ts.map +1 -0
  28. package/build/src/HotBuilder.js +239 -0
  29. package/build/src/HotBuilder.js.map +1 -0
  30. package/build/src/HotClient.d.ts +31 -0
  31. package/build/src/HotClient.d.ts.map +1 -0
  32. package/build/src/HotClient.js +19 -0
  33. package/build/src/HotClient.js.map +1 -0
  34. package/build/src/HotComponent.d.ts +118 -0
  35. package/build/src/HotComponent.d.ts.map +1 -0
  36. package/build/src/HotComponent.js +89 -0
  37. package/build/src/HotComponent.js.map +1 -0
  38. package/build/src/HotCreator.d.ts +92 -0
  39. package/build/src/HotCreator.d.ts.map +1 -0
  40. package/build/src/HotCreator.js +465 -0
  41. package/build/src/HotCreator.js.map +1 -0
  42. package/build/src/HotDB.d.ts +69 -0
  43. package/build/src/HotDB.d.ts.map +1 -0
  44. package/build/src/HotDB.js +29 -0
  45. package/build/src/HotDB.js.map +1 -0
  46. package/build/src/HotDBConnectionInterface.d.ts +40 -0
  47. package/build/src/HotDBConnectionInterface.d.ts.map +1 -0
  48. package/build/src/HotDBConnectionInterface.js +3 -0
  49. package/build/src/HotDBConnectionInterface.js.map +1 -0
  50. package/build/src/HotFile.d.ts +134 -0
  51. package/build/src/HotFile.d.ts.map +1 -0
  52. package/build/src/HotFile.js +454 -0
  53. package/build/src/HotFile.js.map +1 -0
  54. package/build/src/HotHTTPServer.d.ts +162 -0
  55. package/build/src/HotHTTPServer.d.ts.map +1 -0
  56. package/build/src/HotHTTPServer.js +863 -0
  57. package/build/src/HotHTTPServer.js.map +1 -0
  58. package/build/src/HotIO.d.ts +39 -0
  59. package/build/src/HotIO.d.ts.map +1 -0
  60. package/build/src/HotIO.js +195 -0
  61. package/build/src/HotIO.js.map +1 -0
  62. package/build/src/HotLog.d.ts +60 -0
  63. package/build/src/HotLog.d.ts.map +1 -0
  64. package/build/src/HotLog.js +126 -0
  65. package/build/src/HotLog.js.map +1 -0
  66. package/build/src/HotPage.d.ts +125 -0
  67. package/build/src/HotPage.d.ts.map +1 -0
  68. package/build/src/HotPage.js +178 -0
  69. package/build/src/HotPage.js.map +1 -0
  70. package/build/src/HotRoute.d.ts +82 -0
  71. package/build/src/HotRoute.d.ts.map +1 -0
  72. package/build/src/HotRoute.js +83 -0
  73. package/build/src/HotRoute.js.map +1 -0
  74. package/build/src/HotRouteMethod.d.ts +129 -0
  75. package/build/src/HotRouteMethod.d.ts.map +1 -0
  76. package/build/src/HotRouteMethod.js +84 -0
  77. package/build/src/HotRouteMethod.js.map +1 -0
  78. package/build/src/HotServer.d.ts +152 -0
  79. package/build/src/HotServer.d.ts.map +1 -0
  80. package/build/src/HotServer.js +109 -0
  81. package/build/src/HotServer.js.map +1 -0
  82. package/build/src/HotSetAsWeb.d.ts +2 -0
  83. package/build/src/HotSetAsWeb.d.ts.map +1 -0
  84. package/build/src/HotSetAsWeb.js +5 -0
  85. package/build/src/HotSetAsWeb.js.map +1 -0
  86. package/build/src/HotStaq.d.ts +601 -0
  87. package/build/src/HotStaq.d.ts.map +1 -0
  88. package/build/src/HotStaq.js +1258 -0
  89. package/build/src/HotStaq.js.map +1 -0
  90. package/build/src/HotStaqWeb.d.ts +18 -0
  91. package/build/src/HotStaqWeb.d.ts.map +1 -0
  92. package/build/src/HotStaqWeb.js +44 -0
  93. package/build/src/HotStaqWeb.js.map +1 -0
  94. package/build/src/HotTestDriver.d.ts +63 -0
  95. package/build/src/HotTestDriver.d.ts.map +1 -0
  96. package/build/src/HotTestDriver.js +187 -0
  97. package/build/src/HotTestDriver.js.map +1 -0
  98. package/build/src/HotTestElement.d.ts +71 -0
  99. package/build/src/HotTestElement.d.ts.map +1 -0
  100. package/build/src/HotTestElement.js +37 -0
  101. package/build/src/HotTestElement.js.map +1 -0
  102. package/build/src/HotTestMap.d.ts +83 -0
  103. package/build/src/HotTestMap.d.ts.map +1 -0
  104. package/build/src/HotTestMap.js +58 -0
  105. package/build/src/HotTestMap.js.map +1 -0
  106. package/build/src/HotTestSeleniumDriver.d.ts +82 -0
  107. package/build/src/HotTestSeleniumDriver.d.ts.map +1 -0
  108. package/build/src/HotTestSeleniumDriver.js +398 -0
  109. package/build/src/HotTestSeleniumDriver.js.map +1 -0
  110. package/build/src/HotTester.d.ts +188 -0
  111. package/build/src/HotTester.d.ts.map +1 -0
  112. package/build/src/HotTester.js +623 -0
  113. package/build/src/HotTester.js.map +1 -0
  114. package/build/src/HotTesterAPI.d.ts +15 -0
  115. package/build/src/HotTesterAPI.d.ts.map +1 -0
  116. package/build/src/HotTesterAPI.js +161 -0
  117. package/build/src/HotTesterAPI.js.map +1 -0
  118. package/build/src/HotTesterMocha.d.ts +50 -0
  119. package/build/src/HotTesterMocha.d.ts.map +1 -0
  120. package/build/src/HotTesterMocha.js +205 -0
  121. package/build/src/HotTesterMocha.js.map +1 -0
  122. package/build/src/HotTesterMochaSelenium.d.ts +70 -0
  123. package/build/src/HotTesterMochaSelenium.d.ts.map +1 -0
  124. package/build/src/HotTesterMochaSelenium.js +257 -0
  125. package/build/src/HotTesterMochaSelenium.js.map +1 -0
  126. package/build/src/HotTesterServer.d.ts +114 -0
  127. package/build/src/HotTesterServer.d.ts.map +1 -0
  128. package/build/src/HotTesterServer.js +575 -0
  129. package/build/src/HotTesterServer.js.map +1 -0
  130. package/build/src/api.d.ts +33 -0
  131. package/build/src/api.d.ts.map +1 -0
  132. package/build/src/api.js +78 -0
  133. package/build/src/api.js.map +1 -0
  134. package/build/src/cli.d.ts +2 -0
  135. package/build/src/cli.d.ts.map +1 -0
  136. package/build/src/cli.js +935 -0
  137. package/build/src/cli.js.map +1 -0
  138. package/build/src/schemas/HotDBInflux.d.ts +63 -0
  139. package/build/src/schemas/HotDBInflux.d.ts.map +1 -0
  140. package/build/src/schemas/HotDBInflux.js +239 -0
  141. package/build/src/schemas/HotDBInflux.js.map +1 -0
  142. package/build/src/schemas/HotDBMigration.d.ts +19 -0
  143. package/build/src/schemas/HotDBMigration.d.ts.map +1 -0
  144. package/build/src/schemas/HotDBMigration.js +15 -0
  145. package/build/src/schemas/HotDBMigration.js.map +1 -0
  146. package/build/src/schemas/HotDBMySQL.d.ts +65 -0
  147. package/build/src/schemas/HotDBMySQL.d.ts.map +1 -0
  148. package/build/src/schemas/HotDBMySQL.js +387 -0
  149. package/build/src/schemas/HotDBMySQL.js.map +1 -0
  150. package/build/src/schemas/HotDBSchema.d.ts +15 -0
  151. package/build/src/schemas/HotDBSchema.d.ts.map +1 -0
  152. package/build/src/schemas/HotDBSchema.js +19 -0
  153. package/build/src/schemas/HotDBSchema.js.map +1 -0
  154. package/build/src/schemas/influx/InfluxSchema.d.ts +14 -0
  155. package/build/src/schemas/influx/InfluxSchema.d.ts.map +1 -0
  156. package/build/src/schemas/influx/InfluxSchema.js +33 -0
  157. package/build/src/schemas/influx/InfluxSchema.js.map +1 -0
  158. package/build/src/schemas/mysql/MySQLSchema.d.ts +39 -0
  159. package/build/src/schemas/mysql/MySQLSchema.d.ts.map +1 -0
  160. package/build/src/schemas/mysql/MySQLSchema.js +151 -0
  161. package/build/src/schemas/mysql/MySQLSchema.js.map +1 -0
  162. package/build/src/schemas/mysql/MySQLSchemaField.d.ts +168 -0
  163. package/build/src/schemas/mysql/MySQLSchemaField.d.ts.map +1 -0
  164. package/build/src/schemas/mysql/MySQLSchemaField.js +260 -0
  165. package/build/src/schemas/mysql/MySQLSchemaField.js.map +1 -0
  166. package/build/src/schemas/mysql/MySQLSchemaTable.d.ts +49 -0
  167. package/build/src/schemas/mysql/MySQLSchemaTable.d.ts.map +1 -0
  168. package/build/src/schemas/mysql/MySQLSchemaTable.js +310 -0
  169. package/build/src/schemas/mysql/MySQLSchemaTable.js.map +1 -0
  170. package/build-web/HotStaq.js +2 -0
  171. package/build-web/HotStaq.min.js +125 -0
  172. package/builder/docker/Dockerfile.linux.gen +42 -0
  173. package/builder/docker/README.md +36 -0
  174. package/builder/docker/app/start.sh +8 -0
  175. package/builder/docker/dockerignore +3 -0
  176. package/builder/docker/scripts/build.bat +11 -0
  177. package/builder/docker/scripts/build.sh +11 -0
  178. package/builder/docker/scripts/start-app.bat +7 -0
  179. package/builder/docker/scripts/start-app.sh +7 -0
  180. package/builder/docker/scripts/stop-app.bat +5 -0
  181. package/builder/docker/scripts/stop-app.sh +5 -0
  182. package/builder/docker-compose/docker-compose.gen.yaml +41 -0
  183. package/builder/docker-compose/env-skeleton +4 -0
  184. package/creator/project/.vscode/launch.json +59 -0
  185. package/creator/project/README.md +20 -0
  186. package/creator/project/gitignore +118 -0
  187. package/creator/project/npmignore +118 -0
  188. package/creator/public/api-test.hott +28 -0
  189. package/creator/public/index.hott +12 -0
  190. package/creator/ts/src/AppAPI.ts +30 -0
  191. package/creator/ts/src/HelloWorld.ts +39 -0
  192. package/creator/ts/src/WebExport.ts +7 -0
  193. package/creator/ts/tsconfig-web.json +73 -0
  194. package/creator/ts/tsconfig.json +73 -0
  195. package/creator/ts/webpack-api.config.js +57 -0
  196. package/dbstart.sh +19 -0
  197. package/dbstop.sh +4 -0
  198. package/docs/.nojekyll +1 -0
  199. package/docs/README.md +128 -0
  200. package/docs/classes/Hot.md +477 -0
  201. package/docs/classes/HotAPI.md +369 -0
  202. package/docs/classes/HotClient.md +95 -0
  203. package/docs/classes/HotComponent.md +279 -0
  204. package/docs/classes/HotDB.md +247 -0
  205. package/docs/classes/HotDBInflux.md +404 -0
  206. package/docs/classes/HotDBMigration.md +80 -0
  207. package/docs/classes/HotDBMySQL.md +310 -0
  208. package/docs/classes/HotDBSchema.md +51 -0
  209. package/docs/classes/HotFile.md +353 -0
  210. package/docs/classes/HotHTTPServer.md +700 -0
  211. package/docs/classes/HotLog.md +162 -0
  212. package/docs/classes/HotPage.md +357 -0
  213. package/docs/classes/HotRoute.md +312 -0
  214. package/docs/classes/HotRouteMethod.md +271 -0
  215. package/docs/classes/HotServer.md +311 -0
  216. package/docs/classes/HotStaq.md +1153 -0
  217. package/docs/classes/HotTestDestination.md +58 -0
  218. package/docs/classes/HotTestDriver.md +332 -0
  219. package/docs/classes/HotTestElement.md +88 -0
  220. package/docs/classes/HotTestElementOptions.md +71 -0
  221. package/docs/classes/HotTestMap.md +92 -0
  222. package/docs/classes/HotTestSeleniumDriver.md +529 -0
  223. package/docs/classes/HotTester.md +653 -0
  224. package/docs/classes/HotTesterAPI.md +493 -0
  225. package/docs/classes/HotTesterMocha.md +843 -0
  226. package/docs/classes/HotTesterMochaSelenium.md +896 -0
  227. package/docs/classes/HotTesterServer.md +633 -0
  228. package/docs/classes/InfluxSchema.md +74 -0
  229. package/docs/classes/MySQLSchema.md +199 -0
  230. package/docs/classes/MySQLSchemaField.md +330 -0
  231. package/docs/classes/MySQLSchemaTable.md +176 -0
  232. package/docs/enums/ConnectionStatus.md +43 -0
  233. package/docs/enums/DeveloperMode.md +38 -0
  234. package/docs/enums/EventExecutionType.md +43 -0
  235. package/docs/enums/HTTPMethod.md +32 -0
  236. package/docs/enums/HotDBGenerationType.md +30 -0
  237. package/docs/enums/HotLogLevel.md +88 -0
  238. package/docs/interfaces/HotDBConnectionInterface.md +116 -0
  239. package/docs/interfaces/HotDestination.md +62 -0
  240. package/docs/interfaces/HotSite.md +187 -0
  241. package/docs/interfaces/HotSiteMapPath.md +37 -0
  242. package/docs/interfaces/HotSiteRoute.md +79 -0
  243. package/docs/interfaces/HotStartOptions.md +115 -0
  244. package/docs/interfaces/HotTestPage.md +44 -0
  245. package/docs/interfaces/HotTestStop.md +62 -0
  246. package/docs/interfaces/IHotComponent.md +135 -0
  247. package/docs/interfaces/IHotStaq.md +118 -0
  248. package/docs/interfaces/IHotTestElement.md +54 -0
  249. package/docs/interfaces/IHotTestElementOptions.md +43 -0
  250. package/docs/interfaces/MySQLResults.md +43 -0
  251. package/docs/interfaces/MySQLSchemaFieldResult.md +75 -0
  252. package/docs/modules.md +162 -0
  253. package/package.json +65 -0
  254. package/selenium-start.sh +7 -0
  255. package/selenium-stop.sh +3 -0
  256. package/src/Hot.ts +319 -0
  257. package/src/HotAPI.ts +378 -0
  258. package/src/HotAgentAPI.ts +43 -0
  259. package/src/HotAgentRoute.ts +44 -0
  260. package/src/HotBuilder.ts +221 -0
  261. package/src/HotClient.ts +40 -0
  262. package/src/HotComponent.ts +158 -0
  263. package/src/HotCreator.ts +482 -0
  264. package/src/HotDB.ts +79 -0
  265. package/src/HotDBConnectionInterface.ts +40 -0
  266. package/src/HotFile.ts +617 -0
  267. package/src/HotHTTPServer.ts +954 -0
  268. package/src/HotIO.ts +128 -0
  269. package/src/HotLog.ts +158 -0
  270. package/src/HotPage.ts +206 -0
  271. package/src/HotRoute.ts +137 -0
  272. package/src/HotRouteMethod.ts +216 -0
  273. package/src/HotServer.ts +211 -0
  274. package/src/HotSetAsWeb.ts +3 -0
  275. package/src/HotStaq.ts +1877 -0
  276. package/src/HotStaqWeb.ts +59 -0
  277. package/src/HotTestDriver.ts +172 -0
  278. package/src/HotTestElement.ts +97 -0
  279. package/src/HotTestMap.ts +130 -0
  280. package/src/HotTestSeleniumDriver.ts +374 -0
  281. package/src/HotTester.ts +697 -0
  282. package/src/HotTesterAPI.ts +126 -0
  283. package/src/HotTesterMocha.ts +133 -0
  284. package/src/HotTesterMochaSelenium.ts +189 -0
  285. package/src/HotTesterServer.ts +551 -0
  286. package/src/api.ts +102 -0
  287. package/src/cli.ts +1147 -0
  288. package/src/schemas/HotDBInflux.ts +211 -0
  289. package/src/schemas/HotDBMigration.ts +24 -0
  290. package/src/schemas/HotDBMySQL.ts +312 -0
  291. package/src/schemas/HotDBSchema.ts +21 -0
  292. package/src/schemas/influx/InfluxSchema.ts +19 -0
  293. package/src/schemas/mysql/MySQLSchema.ts +90 -0
  294. package/src/schemas/mysql/MySQLSchemaField.ts +408 -0
  295. package/src/schemas/mysql/MySQLSchemaTable.ts +353 -0
  296. package/tsconfig-web.json +74 -0
  297. package/tsconfig.json +73 -0
  298. package/webpack.config.js +51 -0
  299. package/webpack.config.tests.js +56 -0
@@ -0,0 +1,700 @@
1
+ [hotstaq](../README.md) / [Modules](../modules.md) / HotHTTPServer
2
+
3
+ # Class: HotHTTPServer
4
+
5
+ A HTTP server.
6
+
7
+ ## Hierarchy
8
+
9
+ - [`HotServer`](HotServer.md)
10
+
11
+ ↳ **`HotHTTPServer`**
12
+
13
+ ## Table of contents
14
+
15
+ ### Constructors
16
+
17
+ - [constructor](HotHTTPServer.md#constructor)
18
+
19
+ ### Properties
20
+
21
+ - [api](HotHTTPServer.md#api)
22
+ - [expressApp](HotHTTPServer.md#expressapp)
23
+ - [hottFilesAssociatedInfo](HotHTTPServer.md#hottfilesassociatedinfo)
24
+ - [httpListener](HotHTTPServer.md#httplistener)
25
+ - [httpsListener](HotHTTPServer.md#httpslistener)
26
+ - [ignoreHottFiles](HotHTTPServer.md#ignorehottfiles)
27
+ - [listenAddress](HotHTTPServer.md#listenaddress)
28
+ - [logger](HotHTTPServer.md#logger)
29
+ - [ports](HotHTTPServer.md#ports)
30
+ - [processor](HotHTTPServer.md#processor)
31
+ - [redirectHTTPtoHTTPS](HotHTTPServer.md#redirecthttptohttps)
32
+ - [routes](HotHTTPServer.md#routes)
33
+ - [secrets](HotHTTPServer.md#secrets)
34
+ - [serveHottFiles](HotHTTPServer.md#servehottfiles)
35
+ - [serverType](HotHTTPServer.md#servertype)
36
+ - [ssl](HotHTTPServer.md#ssl)
37
+ - [staticRoutes](HotHTTPServer.md#staticroutes)
38
+ - [type](HotHTTPServer.md#type)
39
+
40
+ ### Methods
41
+
42
+ - [addRoute](HotHTTPServer.md#addroute)
43
+ - [addStaticRoute](HotHTTPServer.md#addstaticroute)
44
+ - [clearErrorHandlingRoutes](HotHTTPServer.md#clearerrorhandlingroutes)
45
+ - [getStaticRoute](HotHTTPServer.md#getstaticroute)
46
+ - [listen](HotHTTPServer.md#listen)
47
+ - [preregisterRoute](HotHTTPServer.md#preregisterroute)
48
+ - [registerRoute](HotHTTPServer.md#registerroute)
49
+ - [registerStaticRoute](HotHTTPServer.md#registerstaticroute)
50
+ - [serveDirectory](HotHTTPServer.md#servedirectory)
51
+ - [setAPI](HotHTTPServer.md#setapi)
52
+ - [setErrorHandlingRoutes](HotHTTPServer.md#seterrorhandlingroutes)
53
+ - [shutdown](HotHTTPServer.md#shutdown)
54
+ - [checkIfFileExists](HotHTTPServer.md#checkiffileexists)
55
+ - [getFileUploads](HotHTTPServer.md#getfileuploads)
56
+ - [startServer](HotHTTPServer.md#startserver)
57
+
58
+ ## Constructors
59
+
60
+ ### constructor
61
+
62
+ • **new HotHTTPServer**(`processor`, `httpPort?`, `httpsPort?`)
63
+
64
+ #### Parameters
65
+
66
+ | Name | Type | Default value |
67
+ | :------ | :------ | :------ |
68
+ | `processor` | [`HotStaq`](HotStaq.md) \| [`HotServer`](HotServer.md) | `undefined` |
69
+ | `httpPort` | `number` | `null` |
70
+ | `httpsPort` | `number` | `null` |
71
+
72
+ #### Overrides
73
+
74
+ [HotServer](HotServer.md).[constructor](HotServer.md#constructor)
75
+
76
+ #### Defined in
77
+
78
+ [HotHTTPServer.ts:100](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L100)
79
+
80
+ ## Properties
81
+
82
+ ### api
83
+
84
+ • **api**: [`HotAPI`](HotAPI.md)
85
+
86
+ The API to use.
87
+
88
+ #### Inherited from
89
+
90
+ [HotServer](HotServer.md).[api](HotServer.md#api)
91
+
92
+ #### Defined in
93
+
94
+ [HotServer.ts:94](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotServer.ts#L94)
95
+
96
+ ___
97
+
98
+ ### expressApp
99
+
100
+ • **expressApp**: `Express`
101
+
102
+ The express app to use.
103
+
104
+ #### Defined in
105
+
106
+ [HotHTTPServer.ts:40](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L40)
107
+
108
+ ___
109
+
110
+ ### hottFilesAssociatedInfo
111
+
112
+ • **hottFilesAssociatedInfo**: `Object`
113
+
114
+ The associated info with any hott files served. All values here will be
115
+ overwritten by whatever values are set in the server object in HotSite.json.
116
+
117
+ #### Type declaration
118
+
119
+ | Name | Type | Description |
120
+ | :------ | :------ | :------ |
121
+ | `jsSrcPath` | `string` | The JavaScript source path. |
122
+ | `name` | `string` | The default name for a served Hott file. |
123
+ | `url` | `string` | The base url for a hott file. |
124
+
125
+ #### Defined in
126
+
127
+ [HotHTTPServer.ts:85](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L85)
128
+
129
+ ___
130
+
131
+ ### httpListener
132
+
133
+ • **httpListener**: `Server`
134
+
135
+ The HTTP listener to use.
136
+
137
+ #### Defined in
138
+
139
+ [HotHTTPServer.ts:44](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L44)
140
+
141
+ ___
142
+
143
+ ### httpsListener
144
+
145
+ • **httpsListener**: `Server`
146
+
147
+ The HTTPS listener to use.
148
+
149
+ #### Defined in
150
+
151
+ [HotHTTPServer.ts:48](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L48)
152
+
153
+ ___
154
+
155
+ ### ignoreHottFiles
156
+
157
+ • **ignoreHottFiles**: `Object`
158
+
159
+ Do not serve these hott files.
160
+
161
+ #### Index signature
162
+
163
+ ▪ [name: `string`]: `boolean`
164
+
165
+ #### Defined in
166
+
167
+ [HotHTTPServer.ts:80](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L80)
168
+
169
+ ___
170
+
171
+ ### listenAddress
172
+
173
+ • **listenAddress**: `string`
174
+
175
+ The network address to listen on.
176
+
177
+ #### Inherited from
178
+
179
+ [HotServer](HotServer.md).[listenAddress](HotServer.md#listenaddress)
180
+
181
+ #### Defined in
182
+
183
+ [HotServer.ts:98](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotServer.ts#L98)
184
+
185
+ ___
186
+
187
+ ### logger
188
+
189
+ • **logger**: [`HotLog`](HotLog.md)
190
+
191
+ The logger.
192
+
193
+ #### Inherited from
194
+
195
+ [HotServer](HotServer.md).[logger](HotServer.md#logger)
196
+
197
+ #### Defined in
198
+
199
+ [HotServer.ts:134](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotServer.ts#L134)
200
+
201
+ ___
202
+
203
+ ### ports
204
+
205
+ • **ports**: `Object`
206
+
207
+ The ports to use.
208
+
209
+ #### Type declaration
210
+
211
+ | Name | Type |
212
+ | :------ | :------ |
213
+ | `http` | `number` |
214
+ | `https` | `number` |
215
+
216
+ #### Inherited from
217
+
218
+ [HotServer](HotServer.md).[ports](HotServer.md#ports)
219
+
220
+ #### Defined in
221
+
222
+ [HotServer.ts:102](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotServer.ts#L102)
223
+
224
+ ___
225
+
226
+ ### processor
227
+
228
+ • **processor**: [`HotStaq`](HotStaq.md)
229
+
230
+ The processor to use.
231
+
232
+ #### Inherited from
233
+
234
+ [HotServer](HotServer.md).[processor](HotServer.md#processor)
235
+
236
+ #### Defined in
237
+
238
+ [HotServer.ts:86](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotServer.ts#L86)
239
+
240
+ ___
241
+
242
+ ### redirectHTTPtoHTTPS
243
+
244
+ • **redirectHTTPtoHTTPS**: `boolean`
245
+
246
+ Redirect HTTP traffic to HTTPS.
247
+
248
+ #### Inherited from
249
+
250
+ [HotServer](HotServer.md).[redirectHTTPtoHTTPS](HotServer.md#redirecthttptohttps)
251
+
252
+ #### Defined in
253
+
254
+ [HotServer.ts:126](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotServer.ts#L126)
255
+
256
+ ___
257
+
258
+ ### routes
259
+
260
+ • **routes**: { `route`: `string` ; `type`: [`HTTPMethod`](../enums/HTTPMethod.md) ; `method`: (`req`: `Request`<`ParamsDictionary`, `any`, `any`, `ParsedQs`, `Record`<`string`, `any`\>\>, `res`: `Response`<`any`, `Record`<`string`, `any`\>\>) => `Promise`<`void`\> }[]
261
+
262
+ Any non-static routes that need to be added. These
263
+ will be added during the preregistration phase, before
264
+ all API routes are added.
265
+
266
+ #### Defined in
267
+
268
+ [HotHTTPServer.ts:58](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L58)
269
+
270
+ ___
271
+
272
+ ### secrets
273
+
274
+ • **secrets**: `any`
275
+
276
+ Any secrets associated with this server.
277
+
278
+ #### Inherited from
279
+
280
+ [HotServer](HotServer.md).[secrets](HotServer.md#secrets)
281
+
282
+ #### Defined in
283
+
284
+ [HotServer.ts:138](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotServer.ts#L138)
285
+
286
+ ___
287
+
288
+ ### serveHottFiles
289
+
290
+ • **serveHottFiles**: `boolean`
291
+
292
+ Serve hott files when requested. This value will be overwritten by whatever
293
+ value is set to server.serveHottFiles in HotSite.json.
294
+
295
+ #### Defined in
296
+
297
+ [HotHTTPServer.ts:76](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L76)
298
+
299
+ ___
300
+
301
+ ### serverType
302
+
303
+ • **serverType**: `string`
304
+
305
+ The server type.
306
+
307
+ #### Inherited from
308
+
309
+ [HotServer](HotServer.md).[serverType](HotServer.md#servertype)
310
+
311
+ #### Defined in
312
+
313
+ [HotServer.ts:90](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotServer.ts#L90)
314
+
315
+ ___
316
+
317
+ ### ssl
318
+
319
+ • **ssl**: `Object`
320
+
321
+ SSL settings.
322
+
323
+ #### Type declaration
324
+
325
+ | Name | Type | Description |
326
+ | :------ | :------ | :------ |
327
+ | `ca` | `string` | The SSL certificate CA to use. |
328
+ | `cert` | `string` | The SSL certificate to use. |
329
+ | `key` | `string` | The SSL certificate key to use. |
330
+
331
+ #### Inherited from
332
+
333
+ [HotServer](HotServer.md).[ssl](HotServer.md#ssl)
334
+
335
+ #### Defined in
336
+
337
+ [HotServer.ts:109](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotServer.ts#L109)
338
+
339
+ ___
340
+
341
+ ### staticRoutes
342
+
343
+ • **staticRoutes**: `StaticRoute`[]
344
+
345
+ The static files and folders to serve.
346
+
347
+ #### Defined in
348
+
349
+ [HotHTTPServer.ts:52](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L52)
350
+
351
+ ___
352
+
353
+ ### type
354
+
355
+ • **type**: `HotServerType`
356
+
357
+ The type of server.
358
+
359
+ #### Inherited from
360
+
361
+ [HotServer](HotServer.md).[type](HotServer.md#type)
362
+
363
+ #### Defined in
364
+
365
+ [HotServer.ts:130](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotServer.ts#L130)
366
+
367
+ ## Methods
368
+
369
+ ### addRoute
370
+
371
+ ▸ **addRoute**(`route`, `method`, `type?`): `void`
372
+
373
+ Add a route. This will be registered before any APIs are registered.
374
+
375
+ #### Parameters
376
+
377
+ | Name | Type | Default value |
378
+ | :------ | :------ | :------ |
379
+ | `route` | `string` | `undefined` |
380
+ | `method` | (`req`: `Request`<`ParamsDictionary`, `any`, `any`, `ParsedQs`, `Record`<`string`, `any`\>\>, `res`: `Response`<`any`, `Record`<`string`, `any`\>\>) => `Promise`<`void`\> | `undefined` |
381
+ | `type` | [`HTTPMethod`](../enums/HTTPMethod.md) | `HTTPMethod.GET` |
382
+
383
+ #### Returns
384
+
385
+ `void`
386
+
387
+ #### Defined in
388
+
389
+ [HotHTTPServer.ts:215](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L215)
390
+
391
+ ___
392
+
393
+ ### addStaticRoute
394
+
395
+ ▸ **addStaticRoute**(`route`, `localPath?`): `void`
396
+
397
+ Add a static route.
398
+
399
+ #### Parameters
400
+
401
+ | Name | Type | Default value |
402
+ | :------ | :------ | :------ |
403
+ | `route` | `string` \| `StaticRoute` | `undefined` |
404
+ | `localPath` | `string` | `"."` |
405
+
406
+ #### Returns
407
+
408
+ `void`
409
+
410
+ #### Defined in
411
+
412
+ [HotHTTPServer.ts:194](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L194)
413
+
414
+ ___
415
+
416
+ ### clearErrorHandlingRoutes
417
+
418
+ ▸ **clearErrorHandlingRoutes**(): `void`
419
+
420
+ Clear the last two express routes, which are reserved for the
421
+ error handlers.
422
+
423
+ #### Returns
424
+
425
+ `void`
426
+
427
+ #### Defined in
428
+
429
+ [HotHTTPServer.ts:683](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L683)
430
+
431
+ ___
432
+
433
+ ### getStaticRoute
434
+
435
+ ▸ **getStaticRoute**(`route`): `StaticRoute`
436
+
437
+ Get a static route.
438
+
439
+ #### Parameters
440
+
441
+ | Name | Type |
442
+ | :------ | :------ |
443
+ | `route` | `string` |
444
+
445
+ #### Returns
446
+
447
+ `StaticRoute`
448
+
449
+ #### Defined in
450
+
451
+ [HotHTTPServer.ts:252](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L252)
452
+
453
+ ___
454
+
455
+ ### listen
456
+
457
+ ▸ **listen**(): `Promise`<`void`\>
458
+
459
+ Start listening for requests.
460
+
461
+ #### Returns
462
+
463
+ `Promise`<`void`\>
464
+
465
+ #### Overrides
466
+
467
+ [HotServer](HotServer.md).[listen](HotServer.md#listen)
468
+
469
+ #### Defined in
470
+
471
+ [HotHTTPServer.ts:711](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L711)
472
+
473
+ ___
474
+
475
+ ### preregisterRoute
476
+
477
+ ▸ **preregisterRoute**(): `void`
478
+
479
+ The routes to add before registering a route.
480
+
481
+ #### Returns
482
+
483
+ `void`
484
+
485
+ #### Defined in
486
+
487
+ [HotHTTPServer.ts:440](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L440)
488
+
489
+ ___
490
+
491
+ ### registerRoute
492
+
493
+ ▸ **registerRoute**(`route`): `Promise`<`void`\>
494
+
495
+ Register a route.
496
+
497
+ #### Parameters
498
+
499
+ | Name | Type |
500
+ | :------ | :------ |
501
+ | `route` | [`HotRoute`](HotRoute.md) |
502
+
503
+ #### Returns
504
+
505
+ `Promise`<`void`\>
506
+
507
+ #### Overrides
508
+
509
+ [HotServer](HotServer.md).[registerRoute](HotServer.md#registerroute)
510
+
511
+ #### Defined in
512
+
513
+ [HotHTTPServer.ts:274](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L274)
514
+
515
+ ___
516
+
517
+ ### registerStaticRoute
518
+
519
+ ▸ **registerStaticRoute**(`route`): `void`
520
+
521
+ Register a static route with Express.
522
+
523
+ #### Parameters
524
+
525
+ | Name | Type |
526
+ | :------ | :------ |
527
+ | `route` | `StaticRoute` |
528
+
529
+ #### Returns
530
+
531
+ `void`
532
+
533
+ #### Defined in
534
+
535
+ [HotHTTPServer.ts:238](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L238)
536
+
537
+ ___
538
+
539
+ ### serveDirectory
540
+
541
+ ▸ **serveDirectory**(`route`, `localPath?`): `void`
542
+
543
+ Serve a directory. This is an alias for addStaticRoute.
544
+
545
+ #### Parameters
546
+
547
+ | Name | Type | Default value |
548
+ | :------ | :------ | :------ |
549
+ | `route` | `string` \| `StaticRoute` | `undefined` |
550
+ | `localPath` | `string` | `"."` |
551
+
552
+ #### Returns
553
+
554
+ `void`
555
+
556
+ #### Defined in
557
+
558
+ [HotHTTPServer.ts:230](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L230)
559
+
560
+ ___
561
+
562
+ ### setAPI
563
+
564
+ ▸ **setAPI**(`api`): `Promise`<`void`\>
565
+
566
+ Set an API to this server. This will also set the associated
567
+ processor to this API as well.
568
+
569
+ #### Parameters
570
+
571
+ | Name | Type |
572
+ | :------ | :------ |
573
+ | `api` | [`HotAPI`](HotAPI.md) |
574
+
575
+ #### Returns
576
+
577
+ `Promise`<`void`\>
578
+
579
+ #### Inherited from
580
+
581
+ [HotServer](HotServer.md).[setAPI](HotServer.md#setapi)
582
+
583
+ #### Defined in
584
+
585
+ [HotServer.ts:188](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotServer.ts#L188)
586
+
587
+ ___
588
+
589
+ ### setErrorHandlingRoutes
590
+
591
+ ▸ **setErrorHandlingRoutes**(`handle404?`, `handleOther?`): `void`
592
+
593
+ Set the error handlers. This will create two express routes at the bottom of the
594
+ route stack. The first will be to capture any 404 errors, the second would be to
595
+ catch any remaining errors.
596
+
597
+ #### Parameters
598
+
599
+ | Name | Type | Default value |
600
+ | :------ | :------ | :------ |
601
+ | `handle404` | (`req`: `Request`<`ParamsDictionary`, `any`, `any`, `ParsedQs`, `Record`<`string`, `any`\>\>, `res`: `Response`<`any`, `Record`<`string`, `any`\>\>, `next`: `any`) => `void` | `null` |
602
+ | `handleOther` | (`err`: `any`, `req`: `Request`<`ParamsDictionary`, `any`, `any`, `ParsedQs`, `Record`<`string`, `any`\>\>, `res`: `Response`<`any`, `Record`<`string`, `any`\>\>, `next`: `any`) => `void` | `null` |
603
+
604
+ #### Returns
605
+
606
+ `void`
607
+
608
+ #### Defined in
609
+
610
+ [HotHTTPServer.ts:643](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L643)
611
+
612
+ ___
613
+
614
+ ### shutdown
615
+
616
+ ▸ **shutdown**(): `Promise`<`void`\>
617
+
618
+ Shutdown the server.
619
+
620
+ #### Returns
621
+
622
+ `Promise`<`void`\>
623
+
624
+ #### Overrides
625
+
626
+ [HotServer](HotServer.md).[shutdown](HotServer.md#shutdown)
627
+
628
+ #### Defined in
629
+
630
+ [HotHTTPServer.ts:937](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L937)
631
+
632
+ ___
633
+
634
+ ### checkIfFileExists
635
+
636
+ ▸ `Static` **checkIfFileExists**(`filepath`): `Promise`<`boolean`\>
637
+
638
+ Check if a file exists.
639
+
640
+ #### Parameters
641
+
642
+ | Name | Type |
643
+ | :------ | :------ |
644
+ | `filepath` | `string` |
645
+
646
+ #### Returns
647
+
648
+ `Promise`<`boolean`\>
649
+
650
+ #### Defined in
651
+
652
+ [HotHTTPServer.ts:423](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L423)
653
+
654
+ ___
655
+
656
+ ### getFileUploads
657
+
658
+ ▸ `Static` **getFileUploads**(`req`, `options?`): `Promise`<`Files`\>
659
+
660
+ Get all files uploaded.
661
+
662
+ #### Parameters
663
+
664
+ | Name | Type |
665
+ | :------ | :------ |
666
+ | `req` | `Request`<`ParamsDictionary`, `any`, `any`, `ParsedQs`, `Record`<`string`, `any`\>\> |
667
+ | `options` | `any` |
668
+
669
+ #### Returns
670
+
671
+ `Promise`<`Files`\>
672
+
673
+ #### Defined in
674
+
675
+ [HotHTTPServer.ts:622](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L622)
676
+
677
+ ___
678
+
679
+ ### startServer
680
+
681
+ ▸ `Static` **startServer**(`localStaticPath?`, `httpPort?`, `httpsPort?`, `processor?`): `Promise`<{ `processor`: [`HotStaq`](HotStaq.md) \| [`HotServer`](HotServer.md) ; `server`: [`HotHTTPServer`](HotHTTPServer.md) }\>
682
+
683
+ Start the server.
684
+
685
+ #### Parameters
686
+
687
+ | Name | Type | Default value | Description |
688
+ | :------ | :------ | :------ | :------ |
689
+ | `localStaticPath` | `string` \| `StaticRoute`[] | `null` | The public path that contains the HTML, Hott files, images, and all public content. This can also be an array of StaticRoutes. |
690
+ | `httpPort` | `number` | `80` | The HTTP port to listen on . |
691
+ | `httpsPort` | `number` | `443` | The HTTPS port to listen on. |
692
+ | `processor` | [`HotStaq`](HotStaq.md) \| [`HotServer`](HotServer.md) | `null` | The HotStaq or parent server being used for communication. |
693
+
694
+ #### Returns
695
+
696
+ `Promise`<{ `processor`: [`HotStaq`](HotStaq.md) \| [`HotServer`](HotServer.md) ; `server`: [`HotHTTPServer`](HotHTTPServer.md) }\>
697
+
698
+ #### Defined in
699
+
700
+ [HotHTTPServer.ts:904](https://github.com/OurFreeLight/HotStaq/blob/3f2c5d8/src/HotHTTPServer.ts#L904)