Stone.js API
    Preparing search index...
    • A class decorator for registering a Node.js HTTP adapter in the Stone.js framework.

      The decorator modifies the nodeHttpAdapterBlueprint by merging the provided options with the default configuration. It also registers the blueprint to the target class using the addBlueprint utility.

      NB: This decorator is stubbed for browser environments compatibility and does not perform any actual functionality in the browser. It is intended for use in Node.js environments where the Node.js HTTP adapter is applicable.

      Type Parameters

      • T extends ClassType = ClassType

        The type of the class being decorated, defaulting to ClassType.

      Parameters

      • _options: NodeHttpOptions = {}

        An object containing configuration options for the Node.js HTTP adapter.

      Returns ClassDecorator

      A class decorator function.

      import { NodeHttp } from '@stone-js/node-http-adapter';

      @NodeHttp({
      url: 'http://localhost:3000',
      default: true,
      })
      class MyHttpService {
      // Service implementation
      }