MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / httpHandlerMixin

Method httpHandlerMixin

framework/framework/server.ts:899–901  ·  view source on GitHub ↗
(MixinClass: Partial<Handler> | ((s: Handler) => Partial<Handler>))

Source from the content-addressed store, hash-verified

897 }
898
899 public httpHandlerMixin(MixinClass: Partial<Handler> | ((s: Handler) => Partial<Handler>)) {
900 return this._applyMixin(Handler, MixinClass);
901 }
902
903 public wsHandlerMixin(MixinClass: Partial<ConnectionHandler> | ((s: ConnectionHandler) => Partial<ConnectionHandler>)) {
904 return this._applyMixin(ConnectionHandler, MixinClass);

Callers 1

applyFunction · 0.80

Calls 1

_applyMixinMethod · 0.95

Tested by

no test coverage detected