DecoratorHandler.js 613 B

1234567891011121314151617181920212223242526272829303132333435
  1. 'use strict'
  2. module.exports = class DecoratorHandler {
  3. constructor (handler) {
  4. this.handler = handler
  5. }
  6. onConnect (...args) {
  7. return this.handler.onConnect(...args)
  8. }
  9. onError (...args) {
  10. return this.handler.onError(...args)
  11. }
  12. onUpgrade (...args) {
  13. return this.handler.onUpgrade(...args)
  14. }
  15. onHeaders (...args) {
  16. return this.handler.onHeaders(...args)
  17. }
  18. onData (...args) {
  19. return this.handler.onData(...args)
  20. }
  21. onComplete (...args) {
  22. return this.handler.onComplete(...args)
  23. }
  24. onBodySent (...args) {
  25. return this.handler.onBodySent(...args)
  26. }
  27. }