@superhero/http-server 4.3.6 → 4.3.8

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.
@@ -19,12 +19,12 @@ export default class StatusDispatcher
19
19
 
20
20
  dispatch(_, session)
21
21
  {
22
- session.view.name = this.server.name
23
- session.view.started = started_json
24
- session.view.uptime = this.started.getTime() - new Date().getTime()
25
- session.view.dispatched = String(this.server.dispatched) + 'n'
26
- session.view.completed = String(this.server.completed) + 'n'
27
- session.view.abortions = String(this.server.abortions) + 'n'
28
- session.view.rejections = String(this.server.rejections) + 'n'
22
+ session.view.body.name = this.server.name
23
+ session.view.body.started = this.started_json
24
+ session.view.body.uptime = this.started.getTime() - new Date().getTime()
25
+ session.view.body.dispatched = String(this.server.dispatched) + 'n'
26
+ session.view.body.completed = String(this.server.completed) + 'n'
27
+ session.view.body.abortions = String(this.server.abortions) + 'n'
28
+ session.view.body.rejections = String(this.server.rejections) + 'n'
29
29
  }
30
30
  }
package/index.js CHANGED
@@ -267,7 +267,7 @@ export default class HttpServer
267
267
 
268
268
  downstream.on('error', this.#onDownstreamError.bind(this))
269
269
  downstream.on('close', this.#onStreamClosed.bind(this, session))
270
- downstream.on('close', () => this.log.info`${requestID} ⇣ closed ${url.pathname} ${session.view.status}`)
270
+ downstream.on('close', () => this.log.info`${requestID} ⇣ closed ${session.view.status} ${request.method} ${url.pathname}`)
271
271
 
272
272
  this.dispatched++
273
273
  this.router.dispatch(request, session)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superhero/http-server",
3
- "version": "4.3.6",
3
+ "version": "4.3.8",
4
4
  "description": "HTTP(S) server component supporting both HTTP 1.1 and HTTP 2.0",
5
5
  "keywords": [
6
6
  "http server",