Home Manual Reference Source Repository

References

References

Class Summary

Static Public Class Summary
public

Bq

public
public

Function Summary

Static Public Function Summary
public

env(name: string, value: *): *

If only the name parameter is provided this function acts as a getter for process.env.

Typedef Summary

Static Public Typedef Summary
public
public

RouteHandler: function(request: Request, response: Response)

Changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

0.5.0 - 2018-03-04

Added

  • Added Response#serverResponse to expose the original http.ServerResponse object.
  • Added Request#incomingMessage to expose the original http.IncomingMessage object.

Changed

  • Now extracts prefixed and suffixed URI variables.

0.4.0 - 2018-02-28

Added

  • Added BQ_DEFAULT_CHARSET, BQ_RUN_DEFAULT_PORT, and BQ_RUN_DISPLAY_MSG config environment variables.
  • Added more ESDoc comments.
  • Added async callback support to Bq.prototype.serve.
  • Implemented initial basic support of IETF URI templates.

Changed

  • The required Node version is now >=8.6.

0.3.0 - 2017-07-13

Added

  • Added query parameter to the Request class.
  • Added dnt, host, and userAgent properties to the Request class.
  • Added headers property to the Request class.
  • Added jasmine tests.

Removed

  • Removed chalk package dependency.

0.2.0 - 2017-07-05

Added

  • Added "Install" section in readme.
  • Added "License" section in readme.

Changed

  • Updated the changelog format.
  • Updated the usage section on the readme.
  • Route callback functions now receive a request and response argument.
  • Changed the Bq.prototype.listen method to Bq.prototype.run.

0.1.0 - 2017-07-04

Added

  • Initial release.